yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
dungeon_connection_editor.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_DUNGEON_INSPECTORS_DUNGEON_CONNECTION_EDITOR_H_
2#define YAZE_APP_EDITOR_DUNGEON_INSPECTORS_DUNGEON_CONNECTION_EDITOR_H_
3
4#include <array>
5#include <cstddef>
6#include <cstdint>
7#include <functional>
8#include <optional>
9#include <string>
10
11namespace yaze::editor {
12
13class DungeonCanvasViewer;
14enum class DungeonConnectionLayer;
15
17 int room_id = -1;
18 size_t door_index = 0;
19 const void* rom = nullptr;
20 std::optional<std::array<uint8_t, 3>> source;
22 std::string error;
23};
24
25// Shared connection controls for the selected door. A preview is rebuilt from
26// the current room data each frame; only the explicit action publishes it.
28 DungeonCanvasViewer& viewer, size_t door_index,
29 const std::function<void(int, size_t)>& jump_to_reciprocal = {});
30
31} // namespace yaze::editor
32
33#endif // YAZE_APP_EDITOR_DUNGEON_INSPECTORS_DUNGEON_CONNECTION_EDITOR_H_
Editors are the view controllers for the application.
void DrawDungeonConnectionEditor(DungeonCanvasViewer &viewer, size_t door_index, const std::function< void(int, size_t)> &jump_to_reciprocal)
std::optional< std::array< uint8_t, 3 > > source