![]() |
Blamite Game Engine - Sapien (Library)
00417.04.28.24.2058.blamite
The level editor application for the Blamite Game Engine.
|
Namespace containing functions for interacting with a scenario. More...
Functions | |
| SAPIEN_LIB_API BlamProject * | GetActiveProject () |
| Retrieves the currently active project. More... | |
| SAPIEN_LIB_API BlamTag * | GetActiveScenarioTag () |
| Retrieves the currently active scenario tag. More... | |
| SAPIEN_LIB_API bool | LoadScenario (std::string project_name, std::string tag_path) |
| Loads a scenario tag. More... | |
| SAPIEN_LIB_API bool | LoadScenario_Stage1 (std::string project_name, std::string tag_path) |
| Performs stage 1 of loading a scenario tag. More... | |
| SAPIEN_LIB_API bool | LoadScenario_Stage2 (std::string project_name, std::string tag_path) |
| Performs stage 2 of loading a scenario tag. More... | |
| SAPIEN_LIB_API bool | LoadScenario_Stage3 (std::string project_name, std::string tag_path) |
| Performs stage 3 of loading a scenario tag. More... | |
| SAPIEN_LIB_API bool | LoadScenario_Stage4 (std::string project_name, std::string tag_path) |
| Performs stage 4 of loading a scenario tag. More... | |
| SAPIEN_LIB_API bool | LoadScenario_Stage5 (std::string project_name, std::string tag_path) |
| Performs stage 5 of loading a scenario tag. More... | |
| SAPIEN_LIB_API void | SaveScenario () |
| Attempts to save any changes back to the scenario tag. More... | |
Namespace containing functions for interacting with a scenario.
A scenario can be thought of as a self-contained "level" (or "scene" if you're familiar with other game engines). It will generally reference all data required for the level to load and operate.
| BlamProject * Sapien::Scenario::GetActiveProject | ( | ) |
Retrieves the currently active project.
| BlamTag * Sapien::Scenario::GetActiveScenarioTag | ( | ) |
Retrieves the currently active scenario tag.
Here is the caller graph for this function:| bool Sapien::Scenario::LoadScenario | ( | std::string | project_name, |
| std::string | tag_path | ||
| ) |
Loads a scenario tag.
| project_name | - The name of the project the scenario belongs to. |
| tag_path | - The tag path of the desired scenario tag. |
true if the scenario was loaded successfuly, otherwise returns false.
Here is the call graph for this function:| bool Sapien::Scenario::LoadScenario_Stage1 | ( | std::string | project_name, |
| std::string | tag_path | ||
| ) |
Performs stage 1 of loading a scenario tag.
This stage is responsible for locating the desired project and loading its data.
| project_name | - The name of the project the scenario belongs to. |
| tag_path | - The tag path of the desired scenario tag. |
true if the stage completed successfuly, otherwise returns false.
Here is the caller graph for this function:| bool Sapien::Scenario::LoadScenario_Stage2 | ( | std::string | project_name, |
| std::string | tag_path | ||
| ) |
Performs stage 2 of loading a scenario tag.
This stage is responsible for loading the desired scenario tag data. It will first try to load a decompiled tag if available, but will fall back to a compiled tag if needed. When loading a compiled tag, its version must exactly match - or else the load will be aborted.
| project_name | - The name of the project the scenario belongs to. |
| tag_path | - The tag path of the desired scenario tag. |
true if the stage completed successfuly, otherwise returns false.
Here is the caller graph for this function:| bool Sapien::Scenario::LoadScenario_Stage3 | ( | std::string | project_name, |
| std::string | tag_path | ||
| ) |
Performs stage 3 of loading a scenario tag.
This stage is responsible for recompiling a decompiled scenario tag. This ensures that there aren't any changes made to the decompiled tag that have not yet been compiled.
| project_name | - The name of the project the scenario belongs to. |
| tag_path | - The tag path of the desired scenario tag. |
true if the stage completed successfuly, otherwise returns false.
Here is the caller graph for this function:| bool Sapien::Scenario::LoadScenario_Stage4 | ( | std::string | project_name, |
| std::string | tag_path | ||
| ) |
Performs stage 4 of loading a scenario tag.
This stage is responsible for reading the loaded scenario tag data into the game engine. This will also load any other tags referenced within the scenario as well.
| project_name | - The name of the project the scenario belongs to. |
| tag_path | - The tag path of the desired scenario tag. |
true if the stage completed successfuly, otherwise returns false.
Here is the caller graph for this function:| bool Sapien::Scenario::LoadScenario_Stage5 | ( | std::string | project_name, |
| std::string | tag_path | ||
| ) |
Performs stage 5 of loading a scenario tag.
This stage is responsible for building the scenario hierarchy from the scenario tag.
| project_name | - The name of the project the scenario belongs to. |
| tag_path | - The tag path of the desired scenario tag. |
true if the stage completed successfuly, otherwise returns false.
Here is the call graph for this function:
Here is the caller graph for this function:| void Sapien::Scenario::SaveScenario | ( | ) |
Attempts to save any changes back to the scenario tag.
Here is the call graph for this function: