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>

Collaboration diagram for yaze::editor::RomSession:

Public Member Functions

 RomSession ()=default
 
 RomSession (Rom &&r, UserSettings *user_settings=nullptr, size_t session_id=0, EditorRegistry *editor_registry=nullptr)
 
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
 
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 120 of file session_types.h.

Constructor & Destructor Documentation

◆ RomSession() [1/2]

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

◆ RomSession() [2/2]

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

Definition at line 187 of file session_types.cc.

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

Here is the call graph for this function:

Member Function Documentation

◆ GetDisplayName()

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

Definition at line 196 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

zelda3::GameData yaze::editor::RomSession::game_data

Definition at line 122 of file session_types.h.

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

◆ editors

EditorSet yaze::editor::RomSession::editors

◆ custom_name

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

Definition at line 124 of file session_types.h.

Referenced by GetDisplayName().

◆ filepath

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

◆ feature_flags

◆ game_data_loaded

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

Definition at line 127 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: