![]() |
Blamite Game Engine - Sapien (Library)
00379.04.17.23.2049.blamite
The level editor application for the Blamite Game Engine.
|
Class representing a scenario hierarchy. More...
#include <hierarchy.h>
Public Member Functions | |
| BlamScenarioHierarchy () | |
| Constructs a new scenario hierarchy. More... | |
| ~BlamScenarioHierarchy () | |
| Called when the hierarchy is being destroyed. More... | |
| void | Refresh () |
| Rebuilds the entire hierarchy data from world state and active scenario, cleaning up old data in the process. More... | |
| void | ReleaseData () |
| Releases all memory used by the scenario hierarchy. More... | |
Public Attributes | |
| BlamScenarioHierarchyNode_Group * | scenario_root_node = nullptr |
| Pointer to the Scenario/Mission root node. More... | |
| std::map< int, BlamScenarioHierarchyNode_Group * > | folder_ids = std::map<int, BlamScenarioHierarchyNode_Group*>() |
| A map containing a list of all folder IDs, and their respective node groups. More... | |
Class representing a scenario hierarchy.
The hierarchy is similar to a scene in other engines, in the sense that it provides information about all objects within the loaded level. The hierarchy alone, however, does not manage any particular details about a scene other than what is loaded, and where.
| BlamScenarioHierarchy::BlamScenarioHierarchy | ( | ) |
Constructs a new scenario hierarchy.
| BlamScenarioHierarchy::~BlamScenarioHierarchy | ( | ) |
Called when the hierarchy is being destroyed.
Will automatically call ReleaseData().
| void BlamScenarioHierarchy::Refresh | ( | ) |
Rebuilds the entire hierarchy data from world state and active scenario, cleaning up old data in the process.
| void BlamScenarioHierarchy::ReleaseData | ( | ) |
Releases all memory used by the scenario hierarchy.
| std::map<int, BlamScenarioHierarchyNode_Group*> BlamScenarioHierarchy::folder_ids = std::map<int, BlamScenarioHierarchyNode_Group*>() |
A map containing a list of all folder IDs, and their respective node groups.
Used for quick access to a folder from a folder ID.
| BlamScenarioHierarchyNode_Group* BlamScenarioHierarchy::scenario_root_node = nullptr |
Pointer to the Scenario/Mission root node.
This node is the root node that all objects loaded via the level's scenario tag are placed under. While individual groups/folders can be created freely, any scenario objects can only exist within this root node.