A hymn to beauty.
More...
#include <Hymn.hpp>
◆ Clear()
| void ActiveHymn::Clear |
( |
| ) |
|
Clear the hymn of all properties.
◆ FromJson()
| void ActiveHymn::FromJson |
( |
Json::Value |
root | ) |
|
Convert a Json to a Hymn.
- Parameters
-
| root | The Json file to load. |
◆ GetEntityByGUID()
| Entity * ActiveHymn::GetEntityByGUID |
( |
unsigned int |
GUID | ) |
|
|
static |
Find entity via GUID.
- Parameters
-
| GUID | The Unique Identifier for what entity you want to find. |
- Returns
- Entity found or nullptr if entity with this param does not exist.
◆ GetPath()
| const string & ActiveHymn::GetPath |
( |
| ) |
const |
Get the path where the hymn is saved.
- Returns
- The hymn's path.
◆ GetSavePath()
| std::string ActiveHymn::GetSavePath |
( |
| ) |
const |
Gets the path to the hymn file.
- Returns
- The full path.
◆ Load()
| void ActiveHymn::Load |
( |
const std::string & |
path | ) |
|
Load a hymn.
- Parameters
-
| path | Path to the saved hymn. |
◆ Render()
Render the world.
- Parameters
-
| debugConfiguration | Configuration for visualizing debug information. |
| camera | Camera through which to render (or first camera in the world if nullptr). |
◆ Save()
| void ActiveHymn::Save |
( |
| ) |
const |
◆ SetPath()
| void ActiveHymn::SetPath |
( |
const std::string & |
path | ) |
|
Set the path where the hymn is saved.
- Parameters
-
◆ ToJson()
| Json::Value ActiveHymn::ToJson |
( |
| ) |
const |
Convert the hymn to Json.
- Returns
- The hymn as a Json.
◆ Update()
| void ActiveHymn::Update |
( |
float |
deltaTime | ) |
|
Update the world.
- Parameters
-
| deltaTime | Time since last frame (in seconds). |
◆ Hymn
Get the active hymn.
- Returns
- The ActiveHymn instance.
◆ entityNumber
| unsigned int ActiveHymn::entityNumber = 1U |
The id of the next entity to create.
◆ name
| std::string ActiveHymn::name |
◆ restart
| bool ActiveHymn::restart = false |
Whether to restart the hymn.
◆ saveStateHymn
| Json::Value ActiveHymn::saveStateHymn |
Recently saved state of the hymn.
◆ saveStateWorld
| Json::Value ActiveHymn::saveStateWorld |
Recently saved state of the world.
◆ scriptNumber
| unsigned int ActiveHymn::scriptNumber = 0U |
The id of the next script to create.
◆ scripts
◆ startupScene
| std::string ActiveHymn::startupScene |
Scene to start when playing the hymn.
◆ world
The documentation for this class was generated from the following files: