Unified dependency container for all editor types. More...
#include <editor.h>
Classes | |
struct | SharedClipboard |
Public Attributes | |
Rom * | rom = nullptr |
EditorCardRegistry * | card_registry = nullptr |
ToastManager * | toast_manager = nullptr |
PopupManager * | popup_manager = nullptr |
ShortcutManager * | shortcut_manager = nullptr |
SharedClipboard * | shared_clipboard = nullptr |
UserSettings * | user_settings = nullptr |
size_t | session_id = 0 |
gfx::IRenderer * | renderer = nullptr |
void * | custom_data = nullptr |
Unified dependency container for all editor types.
This struct encapsulates all dependencies that editors might need, providing a clean interface for dependency injection. It supports both standard editors and specialized ones (emulator, dungeon) that need additional dependencies like renderers.
Design Philosophy:
Usage:
Rom* yaze::editor::EditorDependencies::rom = nullptr |
Definition at line 79 of file editor.h.
Referenced by yaze::editor::EditorSet::ApplyDependencies(), and yaze::editor::EditorManager::ConfigureEditorDependencies().
EditorCardRegistry* yaze::editor::EditorDependencies::card_registry = nullptr |
Definition at line 80 of file editor.h.
Referenced by yaze::editor::EditorManager::ConfigureEditorDependencies(), yaze::editor::PaletteEditor::DrawControlPanel(), yaze::editor::AssemblyEditor::Initialize(), yaze::editor::GraphicsEditor::Initialize(), yaze::editor::ScreenEditor::Initialize(), yaze::editor::MessageEditor::Initialize(), yaze::editor::MusicEditor::Initialize(), yaze::editor::OverworldEditor::Initialize(), yaze::editor::PaletteEditor::Initialize(), yaze::editor::SpriteEditor::Initialize(), yaze::editor::SettingsEditor::Initialize(), yaze::editor::DungeonEditorV2::Initialize(), yaze::editor::AssemblyEditor::Load(), yaze::editor::GraphicsEditor::Update(), yaze::editor::ScreenEditor::Update(), yaze::editor::MessageEditor::Update(), yaze::editor::MusicEditor::Update(), yaze::editor::SpriteEditor::Update(), and yaze::editor::SettingsEditor::Update().
ToastManager* yaze::editor::EditorDependencies::toast_manager = nullptr |
Definition at line 81 of file editor.h.
Referenced by yaze::editor::EditorManager::ConfigureEditorDependencies().
PopupManager* yaze::editor::EditorDependencies::popup_manager = nullptr |
Definition at line 82 of file editor.h.
Referenced by yaze::editor::EditorManager::ConfigureEditorDependencies(), and yaze::editor::MessageEditor::DrawExpandedMessageSettings().
ShortcutManager* yaze::editor::EditorDependencies::shortcut_manager = nullptr |
Definition at line 83 of file editor.h.
Referenced by yaze::editor::EditorManager::ConfigureEditorDependencies().
SharedClipboard* yaze::editor::EditorDependencies::shared_clipboard = nullptr |
Definition at line 84 of file editor.h.
Referenced by yaze::editor::EditorManager::ConfigureEditorDependencies(), yaze::editor::OverworldEditor::Copy(), yaze::editor::OverworldEditor::DrawScratchSpace(), yaze::editor::OverworldEditor::DrawScratchSpacePattern(), and yaze::editor::OverworldEditor::Paste().
UserSettings* yaze::editor::EditorDependencies::user_settings = nullptr |
Definition at line 85 of file editor.h.
Referenced by yaze::editor::EditorManager::ConfigureEditorDependencies().
size_t yaze::editor::EditorDependencies::session_id = 0 |
Definition at line 86 of file editor.h.
Referenced by yaze::editor::EditorManager::ConfigureEditorDependencies(), yaze::editor::Editor::MakeCardId(), and yaze::editor::Editor::MakeCardTitle().
gfx::IRenderer* yaze::editor::EditorDependencies::renderer = nullptr |
Definition at line 88 of file editor.h.
Referenced by yaze::editor::EditorManager::ConfigureEditorDependencies().
void* yaze::editor::EditorDependencies::custom_data = nullptr |