23 const std::string&
GetPath()
const;
29 void SetPath(
const std::string& path);
44 void Load(
const std::string& path);
50 Json::Value
ToJson()
const;
62 void Update(
float deltaTime);
112 std::string path =
"";
ActiveHymn & Hymn()
Get the active hymn.
Definition: Hymn.cpp:190
A hymn to beauty.
Definition: Hymn.hpp:12
void Save() const
Save the hymn.
Definition: Hymn.cpp:67
const std::string & GetPath() const
Get the path where the hymn is saved.
Definition: Hymn.cpp:53
void FromJson(Json::Value root)
Convert a Json to a Hymn.
Definition: Hymn.cpp:109
bool restart
Whether to restart the hymn.
Definition: Hymn.hpp:94
std::string startupScene
Scene to start when playing the hymn.
Definition: Hymn.hpp:79
Json::Value ToJson() const
Convert the hymn to Json.
Definition: Hymn.cpp:89
std::string GetSavePath() const
Gets the path to the hymn file.
Definition: Hymn.cpp:63
void Update(float deltaTime)
Update the world.
Definition: Hymn.cpp:125
void SetPath(const std::string &path)
Set the path where the hymn is saved.
Definition: Hymn.cpp:57
std::vector< ScriptFile * > scripts
Scripts.
Definition: Hymn.hpp:88
void Load(const std::string &path)
Load a hymn.
Definition: Hymn.cpp:74
World world
The game world.
Definition: Hymn.hpp:82
void Render(const RenderManager::DebugConfiguration &debugConfiguration, Entity *camera=nullptr)
Render the world.
Definition: Hymn.cpp:175
Json::Value saveStateWorld
Recently saved state of the world.
Definition: Hymn.hpp:97
unsigned int scriptNumber
The id of the next script to create.
Definition: Hymn.hpp:91
Json::Value saveStateHymn
Recently saved state of the hymn.
Definition: Hymn.hpp:100
void Clear()
Clear the hymn of all properties.
Definition: Hymn.cpp:38
std::string name
The name of the hymn.
Definition: Hymn.hpp:103
unsigned int entityNumber
The id of the next entity to create.
Definition: Hymn.hpp:85
friend ActiveHymn & Hymn()
Get the active hymn.
Definition: Hymn.cpp:190
static Entity * GetEntityByGUID(unsigned int GUID)
Find entity via GUID.
Definition: Hymn.cpp:181
Entity containing various components.
Definition: Entity.hpp:16
Information about a file containing a script.
Definition: ScriptFile.hpp:8
The game world containing all entities.
Definition: World.hpp:14
Configuration for visualizing debug information.
Definition: RenderManager.hpp:31