State::Scene
#include "State/Scene.h"
Public Functions
Name | |
---|---|
Scene(StateManager * stateManager, bool readOnly) | |
bool | isSaved() const |
Public Attributes
Name | |
---|---|
fs::path | m_dataPath <br>Path to the scene data directory. |
long | m_hash |
fs::path | m_path <br>Path to the scene json file. |
fs::path | m_prevDataPath <br>m_dataPath of the previous saved scene, valid if m_sceneLocationChanged is true |
fs::path | m_prevPath <br>m_path of the previous saved scene, valid if m_sceneLocationChanged is true |
const bool | m_readOnly |
bool | m_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-11-06 at 20:16:53 +0000