yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
dungeon_room_transfer_editor.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_DUNGEON_INSPECTORS_DUNGEON_ROOM_TRANSFER_EDITOR_H_
2#define YAZE_APP_EDITOR_DUNGEON_INSPECTORS_DUNGEON_ROOM_TRANSFER_EDITOR_H_
3
4#include <cstdint>
5#include <memory>
6#include <string>
7
8namespace yaze::editor {
9
10class DungeonCanvasViewer;
11struct DungeonRoomTransferPlan;
12
14 int room_id = -1;
15 const void* rom = nullptr;
17 bool import_json = false;
18 uint16_t domains = 31;
19 bool copy_destinations = false;
20 std::string json;
21 std::shared_ptr<DungeonRoomTransferPlan> preview;
22 std::string error;
24 std::string status;
25 bool request_popup = false;
26 bool popup_open = false;
27 int popup_room_id = -1;
28};
29
30// A successful load invalidates any preview but does not apply the document.
31// A failed load keeps the prior document/preview available for recovery.
33 const std::string& path);
34
37
38} // namespace yaze::editor
39
40#endif // YAZE_APP_EDITOR_DUNGEON_INSPECTORS_DUNGEON_ROOM_TRANSFER_EDITOR_H_
Editors are the view controllers for the application.
void DrawDungeonRoomTransferPopup(DungeonCanvasViewer &viewer)
void DrawDungeonRoomTransferEditor(DungeonCanvasViewer &viewer)
void LoadDungeonRoomTransferFile(DungeonRoomTransferEditorState &state, const std::string &path)
std::shared_ptr< DungeonRoomTransferPlan > preview