Lightweight view into the essential runtime context (Rom + GameData) More...
#include <editor.h>

Public Member Functions | |
| bool | IsValid () const |
| bool | HasRom () const |
| bool | HasGameData () const |
| operator bool () const | |
Public Attributes | |
| Rom * | rom = nullptr |
| zelda3::GameData * | game_data = nullptr |
Lightweight view into the essential runtime context (Rom + GameData)
This struct provides a bundled view of the two primary dependencies for Zelda3 editing operations. It can be passed by value and is designed to replace the pattern of passing rom_ and game_data_ separately.
Usage:
|
inline |
Definition at line 72 of file editor.h.
References game_data, and rom.
Referenced by operator bool().
|
inline |
|
inline |
|
inlineexplicit |
| Rom* yaze::editor::EditorContext::rom = nullptr |
Definition at line 68 of file editor.h.
Referenced by HasRom(), IsValid(), yaze::editor::DungeonCanvasViewer::SetContext(), yaze::editor::DungeonObjectSelector::SetContext(), yaze::editor::DungeonRoomLoader::SetContext(), yaze::editor::DungeonRoomSelector::SetContext(), and yaze::editor::ObjectEditorPanel::SetContext().
| zelda3::GameData* yaze::editor::EditorContext::game_data = nullptr |
Definition at line 69 of file editor.h.
Referenced by HasGameData(), IsValid(), yaze::editor::DungeonCanvasViewer::SetContext(), yaze::editor::DungeonObjectSelector::SetContext(), yaze::editor::DungeonRoomLoader::SetContext(), yaze::editor::DungeonRoomSelector::SetContext(), and yaze::editor::ObjectEditorPanel::SetContext().