yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::EditorSet Class Reference

Contains a complete set of editors for a single ROM instance. More...

#include <session_types.h>

Collaboration diagram for yaze::editor::EditorSet:

Public Member Functions

 EditorSet (Rom *rom=nullptr, zelda3::GameData *game_data=nullptr, UserSettings *user_settings=nullptr, size_t session_id=0, EditorRegistry *editor_registry=nullptr)
 
 ~EditorSet ()
 
void set_user_settings (UserSettings *settings)
 
void ApplyDependencies (const EditorDependencies &dependencies)
 
size_t session_id () const
 
EditorGetEditor (EditorType type) const
 
template<typename T >
T * GetEditorAs (EditorType type) const
 
void OpenAssemblyFolder (const std::string &folder_path) const
 
void ChangeActiveAssemblyFile (std::string_view path) const
 
core::AsarWrapperGetAsarWrapper () const
 
int LoadedDungeonRoomCount () const
 
int TotalDungeonRoomCount () const
 
std::vector< std::pair< uint32_t, uint32_t > > CollectDungeonWriteRanges () const
 
zelda3::OverworldGetOverworldData () const
 
AssemblyEditorGetAssemblyEditor () const
 
DungeonEditorV2GetDungeonEditor () const
 
GraphicsEditorGetGraphicsEditor () const
 
MusicEditorGetMusicEditor () const
 
OverworldEditorGetOverworldEditor () const
 
PaletteEditorGetPaletteEditor () const
 
ScreenEditorGetScreenEditor () const
 
SpriteEditorGetSpriteEditor () const
 
SettingsPanelGetSettingsPanel () const
 
MessageEditorGetMessageEditor () const
 
MemoryEditorGetMemoryEditor () const
 

Public Attributes

std::vector< Editor * > active_editors_
 

Private Attributes

size_t session_id_ = 0
 
zelda3::GameDatagame_data_ = nullptr
 
std::unordered_map< EditorType, std::unique_ptr< Editor > > editors_
 

Detailed Description

Contains a complete set of editors for a single ROM instance.

Definition at line 49 of file session_types.h.

Constructor & Destructor Documentation

◆ EditorSet()

◆ ~EditorSet()

yaze::editor::EditorSet::~EditorSet ( )
default

Member Function Documentation

◆ set_user_settings()

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().

Here is the call graph for this function:

◆ ApplyDependencies()

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().

◆ session_id()

size_t yaze::editor::EditorSet::session_id ( ) const
inline

Definition at line 61 of file session_types.h.

References session_id_.

Referenced by yaze::editor::EditorManager::ConfigureSession().

◆ GetEditor()

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().

◆ GetEditorAs()

template<typename T >
T * yaze::editor::EditorSet::GetEditorAs ( EditorType type) const
inline

Definition at line 67 of file session_types.h.

References GetEditor().

Here is the call graph for this function:

◆ OpenAssemblyFolder()

void yaze::editor::EditorSet::OpenAssemblyFolder ( const std::string & folder_path) const

Definition at line 104 of file session_types.cc.

References GetAssemblyEditor().

Here is the call graph for this function:

◆ ChangeActiveAssemblyFile()

void yaze::editor::EditorSet::ChangeActiveAssemblyFile ( std::string_view path) const

Definition at line 110 of file session_types.cc.

References GetAssemblyEditor().

Here is the call graph for this function:

◆ GetAsarWrapper()

core::AsarWrapper * yaze::editor::EditorSet::GetAsarWrapper ( ) const

Definition at line 116 of file session_types.cc.

References GetAssemblyEditor().

Here is the call graph for this function:

◆ LoadedDungeonRoomCount()

int yaze::editor::EditorSet::LoadedDungeonRoomCount ( ) const

Definition at line 123 of file session_types.cc.

References GetDungeonEditor().

Here is the call graph for this function:

◆ TotalDungeonRoomCount()

int yaze::editor::EditorSet::TotalDungeonRoomCount ( ) const

Definition at line 130 of file session_types.cc.

References GetDungeonEditor().

Here is the call graph for this function:

◆ CollectDungeonWriteRanges()

std::vector< std::pair< uint32_t, uint32_t > > yaze::editor::EditorSet::CollectDungeonWriteRanges ( ) const

Definition at line 137 of file session_types.cc.

References GetDungeonEditor().

Here is the call graph for this function:

◆ GetOverworldData()

zelda3::Overworld * yaze::editor::EditorSet::GetOverworldData ( ) const

Definition at line 145 of file session_types.cc.

References GetOverworldEditor().

Here is the call graph for this function:

◆ GetAssemblyEditor()

AssemblyEditor * yaze::editor::EditorSet::GetAssemblyEditor ( ) const

◆ GetDungeonEditor()

DungeonEditorV2 * yaze::editor::EditorSet::GetDungeonEditor ( ) const

◆ GetGraphicsEditor()

GraphicsEditor * yaze::editor::EditorSet::GetGraphicsEditor ( ) const

Definition at line 159 of file session_types.cc.

References yaze::editor::kGraphics.

Referenced by EditorSet().

◆ GetMusicEditor()

MusicEditor * yaze::editor::EditorSet::GetMusicEditor ( ) const

Definition at line 162 of file session_types.cc.

References yaze::editor::kMusic.

◆ GetOverworldEditor()

OverworldEditor * yaze::editor::EditorSet::GetOverworldEditor ( ) const

Definition at line 165 of file session_types.cc.

References yaze::editor::kOverworld.

Referenced by EditorSet(), and GetOverworldData().

◆ GetPaletteEditor()

PaletteEditor * yaze::editor::EditorSet::GetPaletteEditor ( ) const

Definition at line 168 of file session_types.cc.

References yaze::editor::kPalette.

◆ GetScreenEditor()

ScreenEditor * yaze::editor::EditorSet::GetScreenEditor ( ) const

Definition at line 171 of file session_types.cc.

References yaze::editor::kScreen.

◆ GetSpriteEditor()

SpriteEditor * yaze::editor::EditorSet::GetSpriteEditor ( ) const

Definition at line 174 of file session_types.cc.

References yaze::editor::kSprite.

◆ GetSettingsPanel()

SettingsPanel * yaze::editor::EditorSet::GetSettingsPanel ( ) const

◆ GetMessageEditor()

MessageEditor * yaze::editor::EditorSet::GetMessageEditor ( ) const

Definition at line 180 of file session_types.cc.

References yaze::editor::kMessage.

◆ GetMemoryEditor()

MemoryEditor * yaze::editor::EditorSet::GetMemoryEditor ( ) const

Definition at line 183 of file session_types.cc.

References yaze::editor::kHex.

Member Data Documentation

◆ active_editors_

std::vector<Editor*> yaze::editor::EditorSet::active_editors_

◆ session_id_

size_t yaze::editor::EditorSet::session_id_ = 0
private

Definition at line 109 of file session_types.h.

Referenced by session_id().

◆ game_data_

zelda3::GameData* yaze::editor::EditorSet::game_data_ = nullptr
private

Definition at line 110 of file session_types.h.

◆ editors_

std::unordered_map<EditorType, std::unique_ptr<Editor> > yaze::editor::EditorSet::editors_
private

Definition at line 112 of file session_types.h.

Referenced by ApplyDependencies(), EditorSet(), and GetEditor().


The documentation for this class was generated from the following files: