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
11
namespace
yaze::editor
{
12
13
class
DungeonCanvasViewer;
14
enum class
DungeonConnectionLayer
;
15
16
struct
DungeonConnectionEditorState
{
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
;
21
DungeonConnectionLayer
layer
{};
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.
27
void
DrawDungeonConnectionEditor
(
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_
yaze::editor::DungeonCanvasViewer
Definition
dungeon_canvas_viewer.h:230
yaze::editor
Editors are the view controllers for the application.
Definition
patch_export_usage.cc:9
yaze::editor::DungeonConnectionLayer
DungeonConnectionLayer
Definition
dungeon_connection_edit.h:12
yaze::editor::DrawDungeonConnectionEditor
void DrawDungeonConnectionEditor(DungeonCanvasViewer &viewer, size_t door_index, const std::function< void(int, size_t)> &jump_to_reciprocal)
Definition
dungeon_connection_editor.cc:94
yaze::editor::DungeonConnectionEditorState
Definition
dungeon_connection_editor.h:16
yaze::editor::DungeonConnectionEditorState::door_index
size_t door_index
Definition
dungeon_connection_editor.h:18
yaze::editor::DungeonConnectionEditorState::rom
const void * rom
Definition
dungeon_connection_editor.h:19
yaze::editor::DungeonConnectionEditorState::layer
DungeonConnectionLayer layer
Definition
dungeon_connection_editor.h:21
yaze::editor::DungeonConnectionEditorState::error
std::string error
Definition
dungeon_connection_editor.h:22
yaze::editor::DungeonConnectionEditorState::room_id
int room_id
Definition
dungeon_connection_editor.h:17
yaze::editor::DungeonConnectionEditorState::source
std::optional< std::array< uint8_t, 3 > > source
Definition
dungeon_connection_editor.h:20
src
app
editor
dungeon
inspectors
dungeon_connection_editor.h
Generated by
1.10.0