Contains a complete set of editors for a single ROM instance. More...
#include <session_types.h>

Public Attributes | |
| std::vector< Editor * > | active_editors_ |
Private Attributes | |
| size_t | session_id_ = 0 |
| zelda3::GameData * | game_data_ = nullptr |
| std::unordered_map< EditorType, std::unique_ptr< Editor > > | editors_ |
Contains a complete set of editors for a single ROM instance.
Definition at line 49 of file session_types.h.
|
explicit |
Definition at line 21 of file session_types.cc.
References active_editors_, yaze::editor::EditorRegistry::CreateEditor(), editors_, GetDungeonEditor(), GetEditor(), GetGraphicsEditor(), GetOverworldEditor(), yaze::editor::kAssembly, yaze::editor::kDungeon, yaze::editor::kGraphics, yaze::editor::kHex, yaze::editor::kMessage, yaze::editor::kMusic, yaze::editor::kOverworld, yaze::editor::kPalette, yaze::editor::kScreen, yaze::editor::kSettings, yaze::editor::kSprite, yaze::editor::DungeonEditorV2::SetGameData(), yaze::editor::GraphicsEditor::SetGameData(), and yaze::editor::OverworldEditor::SetGameData().
|
default |
| void yaze::editor::EditorSet::set_user_settings | ( | UserSettings * | settings | ) |
Definition at line 86 of file session_types.cc.
References GetSettingsPanel(), and yaze::editor::SettingsPanel::SetUserSettings().
Referenced by yaze::editor::EditorManager::ConfigureSession().

| void yaze::editor::EditorSet::ApplyDependencies | ( | const EditorDependencies & | dependencies | ) |
Definition at line 90 of file session_types.cc.
References editors_.
Referenced by yaze::editor::EditorManager::ConfigureEditorDependencies().
|
inline |
Definition at line 61 of file session_types.h.
References session_id_.
Referenced by yaze::editor::EditorManager::ConfigureSession().
| Editor * yaze::editor::EditorSet::GetEditor | ( | EditorType | type | ) | const |
Definition at line 96 of file session_types.cc.
References editors_.
Referenced by EditorSet(), GetEditorAs(), and yaze::editor::EditorManager::GetEditorByType().
|
inline |
Definition at line 67 of file session_types.h.
References GetEditor().

| void yaze::editor::EditorSet::OpenAssemblyFolder | ( | const std::string & | folder_path | ) | const |
Definition at line 104 of file session_types.cc.
References GetAssemblyEditor().

| void yaze::editor::EditorSet::ChangeActiveAssemblyFile | ( | std::string_view | path | ) | const |
Definition at line 110 of file session_types.cc.
References GetAssemblyEditor().

| core::AsarWrapper * yaze::editor::EditorSet::GetAsarWrapper | ( | ) | const |
Definition at line 116 of file session_types.cc.
References GetAssemblyEditor().

| int yaze::editor::EditorSet::LoadedDungeonRoomCount | ( | ) | const |
Definition at line 123 of file session_types.cc.
References GetDungeonEditor().

| int yaze::editor::EditorSet::TotalDungeonRoomCount | ( | ) | const |
Definition at line 130 of file session_types.cc.
References GetDungeonEditor().

| std::vector< std::pair< uint32_t, uint32_t > > yaze::editor::EditorSet::CollectDungeonWriteRanges | ( | ) | const |
Definition at line 137 of file session_types.cc.
References GetDungeonEditor().

| zelda3::Overworld * yaze::editor::EditorSet::GetOverworldData | ( | ) | const |
Definition at line 145 of file session_types.cc.
References GetOverworldEditor().

| AssemblyEditor * yaze::editor::EditorSet::GetAssemblyEditor | ( | ) | const |
Definition at line 153 of file session_types.cc.
References yaze::editor::kAssembly.
Referenced by ChangeActiveAssemblyFile(), GetAsarWrapper(), and OpenAssemblyFolder().
| DungeonEditorV2 * yaze::editor::EditorSet::GetDungeonEditor | ( | ) | const |
Definition at line 156 of file session_types.cc.
References yaze::editor::kDungeon.
Referenced by CollectDungeonWriteRanges(), EditorSet(), LoadedDungeonRoomCount(), and TotalDungeonRoomCount().
| GraphicsEditor * yaze::editor::EditorSet::GetGraphicsEditor | ( | ) | const |
Definition at line 159 of file session_types.cc.
References yaze::editor::kGraphics.
Referenced by EditorSet().
| MusicEditor * yaze::editor::EditorSet::GetMusicEditor | ( | ) | const |
Definition at line 162 of file session_types.cc.
References yaze::editor::kMusic.
| OverworldEditor * yaze::editor::EditorSet::GetOverworldEditor | ( | ) | const |
Definition at line 165 of file session_types.cc.
References yaze::editor::kOverworld.
Referenced by EditorSet(), and GetOverworldData().
| PaletteEditor * yaze::editor::EditorSet::GetPaletteEditor | ( | ) | const |
Definition at line 168 of file session_types.cc.
References yaze::editor::kPalette.
| ScreenEditor * yaze::editor::EditorSet::GetScreenEditor | ( | ) | const |
Definition at line 171 of file session_types.cc.
References yaze::editor::kScreen.
| SpriteEditor * yaze::editor::EditorSet::GetSpriteEditor | ( | ) | const |
Definition at line 174 of file session_types.cc.
References yaze::editor::kSprite.
| SettingsPanel * yaze::editor::EditorSet::GetSettingsPanel | ( | ) | const |
Definition at line 177 of file session_types.cc.
References yaze::editor::kSettings.
Referenced by yaze::editor::EditorManager::HandleSessionSwitched(), and set_user_settings().
| MessageEditor * yaze::editor::EditorSet::GetMessageEditor | ( | ) | const |
Definition at line 180 of file session_types.cc.
References yaze::editor::kMessage.
| MemoryEditor * yaze::editor::EditorSet::GetMemoryEditor | ( | ) | const |
Definition at line 183 of file session_types.cc.
References yaze::editor::kHex.
| std::vector<Editor*> yaze::editor::EditorSet::active_editors_ |
Definition at line 106 of file session_types.h.
Referenced by yaze::editor::EditorActivator::DeactivatePanelBasedEditor(), and EditorSet().
|
private |
Definition at line 109 of file session_types.h.
Referenced by session_id().
|
private |
Definition at line 110 of file session_types.h.
|
private |
Definition at line 112 of file session_types.h.
Referenced by ApplyDependencies(), EditorSet(), and GetEditor().