Skip to content

State::Scene

#include "State/Scene.h"

Public Functions

Name
Scene(StateManager * stateManager, bool readOnly)
boolisSaved() const

Public Attributes

Name
fs::pathm_dataPath <br>Path to the scene data directory.
longm_hash
fs::pathm_path <br>Path to the scene json file.
fs::pathm_prevDataPath <br>m_dataPath of the previous saved scene, valid if m_sceneLocationChanged is true
fs::pathm_prevPath <br>m_path of the previous saved scene, valid if m_sceneLocationChanged is true
const boolm_readOnly
boolm_sceneLocationChanged <br>Whether the scene path is a new location compared to the previous save.
StateManager *m_stateManager <br>Reference to the state manager this scene is managed by.

Public Functions Documentation

function Scene

cpp
inline Scene(
    StateManager * stateManager,
    bool readOnly
)
inline Scene(
    StateManager * stateManager,
    bool readOnly
)

function isSaved

cpp
inline bool isSaved() const
inline bool isSaved() const

Public Attributes Documentation

variable m_dataPath

cpp
fs::path m_dataPath;
fs::path m_dataPath;

Path to the scene data directory.

variable m_hash

cpp
long m_hash {};
long m_hash {};

variable m_path

cpp
fs::path m_path;
fs::path m_path;

Path to the scene json file.

variable m_prevDataPath

cpp
fs::path m_prevDataPath;
fs::path m_prevDataPath;

m_dataPath of the previous saved scene, valid if m_sceneLocationChanged is true

variable m_prevPath

cpp
fs::path m_prevPath;
fs::path m_prevPath;

m_path of the previous saved scene, valid if m_sceneLocationChanged is true

variable m_readOnly

cpp
const bool m_readOnly;
const bool m_readOnly;

variable m_sceneLocationChanged

cpp
bool m_sceneLocationChanged {false};
bool m_sceneLocationChanged {false};

Whether the scene path is a new location compared to the previous save.

variable m_stateManager

cpp
StateManager * m_stateManager;
StateManager * m_stateManager;

Reference to the state manager this scene is managed by.


Updated on 2024-03-16 at 19:15:01 +0000