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
8
namespace
yaze::editor
{
9
10
class
DungeonCanvasViewer;
11
struct
DungeonRoomTransferPlan;
12
13
struct
DungeonRoomTransferEditorState
{
14
int
room_id
= -1;
15
const
void
*
rom
=
nullptr
;
16
int
source_room_id
= 0;
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
;
23
bool
can_retry_without_properties
=
false
;
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.
32
void
LoadDungeonRoomTransferFile
(
DungeonRoomTransferEditorState
& state,
33
const
std::string& path);
34
35
void
DrawDungeonRoomTransferEditor
(
DungeonCanvasViewer
& viewer);
36
void
DrawDungeonRoomTransferPopup
(
DungeonCanvasViewer
& viewer);
37
38
}
// namespace yaze::editor
39
40
#endif
// YAZE_APP_EDITOR_DUNGEON_INSPECTORS_DUNGEON_ROOM_TRANSFER_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::DrawDungeonRoomTransferPopup
void DrawDungeonRoomTransferPopup(DungeonCanvasViewer &viewer)
Definition
dungeon_room_transfer_editor.cc:330
yaze::editor::DrawDungeonRoomTransferEditor
void DrawDungeonRoomTransferEditor(DungeonCanvasViewer &viewer)
Definition
dungeon_room_transfer_editor.cc:115
yaze::editor::LoadDungeonRoomTransferFile
void LoadDungeonRoomTransferFile(DungeonRoomTransferEditorState &state, const std::string &path)
Definition
dungeon_room_transfer_editor.cc:99
yaze::editor::DungeonRoomTransferEditorState
Definition
dungeon_room_transfer_editor.h:13
yaze::editor::DungeonRoomTransferEditorState::popup_open
bool popup_open
Definition
dungeon_room_transfer_editor.h:26
yaze::editor::DungeonRoomTransferEditorState::error
std::string error
Definition
dungeon_room_transfer_editor.h:22
yaze::editor::DungeonRoomTransferEditorState::domains
uint16_t domains
Definition
dungeon_room_transfer_editor.h:18
yaze::editor::DungeonRoomTransferEditorState::request_popup
bool request_popup
Definition
dungeon_room_transfer_editor.h:25
yaze::editor::DungeonRoomTransferEditorState::source_room_id
int source_room_id
Definition
dungeon_room_transfer_editor.h:16
yaze::editor::DungeonRoomTransferEditorState::rom
const void * rom
Definition
dungeon_room_transfer_editor.h:15
yaze::editor::DungeonRoomTransferEditorState::copy_destinations
bool copy_destinations
Definition
dungeon_room_transfer_editor.h:19
yaze::editor::DungeonRoomTransferEditorState::json
std::string json
Definition
dungeon_room_transfer_editor.h:20
yaze::editor::DungeonRoomTransferEditorState::preview
std::shared_ptr< DungeonRoomTransferPlan > preview
Definition
dungeon_room_transfer_editor.h:21
yaze::editor::DungeonRoomTransferEditorState::popup_room_id
int popup_room_id
Definition
dungeon_room_transfer_editor.h:27
yaze::editor::DungeonRoomTransferEditorState::room_id
int room_id
Definition
dungeon_room_transfer_editor.h:14
yaze::editor::DungeonRoomTransferEditorState::import_json
bool import_json
Definition
dungeon_room_transfer_editor.h:17
yaze::editor::DungeonRoomTransferEditorState::can_retry_without_properties
bool can_retry_without_properties
Definition
dungeon_room_transfer_editor.h:23
yaze::editor::DungeonRoomTransferEditorState::status
std::string status
Definition
dungeon_room_transfer_editor.h:24
src
app
editor
dungeon
inspectors
dungeon_room_transfer_editor.h
Generated by
1.10.0