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

Represents a single session, containing a ROM and its associated editors. More...

#include <session_types.h>

Public Member Functions

 RomSession ()=default
 
 RomSession (UserSettings *user_settings, size_t session_id, EditorRegistry *editor_registry=nullptr)
 
 RomSession (Rom &&r, UserSettings *user_settings=nullptr, size_t session_id=0, EditorRegistry *editor_registry=nullptr)
 
 ~RomSession ()
 
size_t session_id () const
 
std::string GetDisplayName () const
 

Public Attributes

Rom rom
 
zelda3::GameData game_data
 
EditorSet editors
 
std::string custom_name
 
std::string filepath
 
core::FeatureFlags::Flags feature_flags
 
std::optional< project::YazeProjectproject_context
 
bool project_dirty = false
 
bool backup_restore_pending = false
 
ProjectFileEditorState project_file_editor_state
 
std::unique_ptr< core::VersionManagerversion_manager
 
bool game_data_loaded = false
 
std::array< bool, kEditorTypeCounteditor_initialized {}
 
std::array< bool, kEditorTypeCounteditor_assets_loaded {}
 

Detailed Description

Represents a single session, containing a ROM and its associated editors.

Definition at line 158 of file session_types.h.

Constructor & Destructor Documentation

◆ RomSession() [1/3]

yaze::editor::RomSession::RomSession ( )
default

◆ RomSession() [2/3]

yaze::editor::RomSession::RomSession ( UserSettings * user_settings,
size_t session_id,
EditorRegistry * editor_registry = nullptr )

Definition at line 279 of file session_types.cc.

◆ RomSession() [3/3]

yaze::editor::RomSession::RomSession ( Rom && r,
UserSettings * user_settings = nullptr,
size_t session_id = 0,
EditorRegistry * editor_registry = nullptr )
explicit

Definition at line 284 of file session_types.cc.

References feature_flags, yaze::Rom::filename(), filepath, and rom.

Here is the call graph for this function:

◆ ~RomSession()

yaze::editor::RomSession::~RomSession ( )

Definition at line 293 of file session_types.cc.

References game_data, yaze::gfx::PaletteManager::Get(), and yaze::gfx::PaletteManager::ReleaseSession().

Here is the call graph for this function:

Member Function Documentation

◆ session_id()

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

◆ GetDisplayName()

std::string yaze::editor::RomSession::GetDisplayName ( ) const

Definition at line 297 of file session_types.cc.

References custom_name, rom, and yaze::Rom::title().

Here is the call graph for this function:

Member Data Documentation

◆ rom

◆ game_data

◆ editors

◆ custom_name

std::string yaze::editor::RomSession::custom_name

Definition at line 162 of file session_types.h.

Referenced by GetDisplayName().

◆ filepath

std::string yaze::editor::RomSession::filepath

◆ feature_flags

◆ project_context

◆ project_dirty

bool yaze::editor::RomSession::project_dirty = false

◆ backup_restore_pending

bool yaze::editor::RomSession::backup_restore_pending = false

Definition at line 171 of file session_types.h.

◆ project_file_editor_state

ProjectFileEditorState yaze::editor::RomSession::project_file_editor_state

◆ version_manager

std::unique_ptr<core::VersionManager> yaze::editor::RomSession::version_manager

◆ game_data_loaded

bool yaze::editor::RomSession::game_data_loaded = false

Definition at line 177 of file session_types.h.

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

◆ editor_initialized

std::array<bool, kEditorTypeCount> yaze::editor::RomSession::editor_initialized {}

◆ editor_assets_loaded

std::array<bool, kEditorTypeCount> yaze::editor::RomSession::editor_assets_loaded {}

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