 |
Blamite Game Engine - Sapien (Library)
00433.02.16.25.2127.blamite
The level editor application for the Blamite Game Engine.
|
Go to the documentation of this file.
3 #include <Strings/components/settings/config/config.h>
4 #include <Strings/components/diagnostics/errors/errors.h>
10 #ifdef SAPIEN_LIB_EXPORTS
11 #define SAPIEN_LIB_API __declspec(dllexport)
13 #define SAPIEN_LIB_API __declspec(dllimport)
16 #define SAPIEN_CONFIG_DEFAULT_NAME "sapien.cfg"
SAPIEN_LIB_API BlamConfigurationFile * GetConfig()
Retrieves the Sapien configuration.
Definition: config.cpp:61
BlamScenarioHierarchyNode * parent_node
The parent node, if any, of this hierarchy node.
Definition: hierarchy.h:45
BlamWorldObject * world_object
The world object that this node refers to.
Definition: hierarchy.h:178
SAPIEN_LIB_API BlamTag * GetActiveScenarioTag()
Retrieves the currently active scenario tag.
Definition: scenario.cpp:22
BlamConfigurationFile * sapien_config
Guerilla's configuration data.
Definition: config.cpp:8
void Refresh()
Rebuilds the entire hierarchy data from world state and active scenario, cleaning up old data in the ...
Definition: BlamScenarioHierarchy.cpp:24
SAPIEN_LIB_API std::vector< std::string > GetPaletteTypes()
Retrieves a list of available scenario palette types, where each item is a string representing a long...
Definition: scenario.cpp:199
BlamTag * active_scenario
Definition: scenario.cpp:20
std::map< int, BlamScenarioHierarchyNode_Group * > folder_ids
A map containing a list of all folder IDs, and their respective node groups.
Definition: hierarchy.h:240
BlamScenarioHierarchyNodeType GetType()
Retrieves the type of this node.
Definition: BlamScenarioHierarchyNode.cpp:20
SAPIEN_LIB_API BlamTagField_Block * GetPalette(BlamTag *scenario, std::string type)
Retrieves a palette block from a scenario tag.
Definition: scenario.cpp:207
bool rebuild_scenario_primitives(BlamTag *active_scenario, BlamScenarioHierarchy *hierarchy)
Definition: scenario_save.cpp:99
std::string GetName()
Retrieves the display name of the hierarchy node.
Definition: BlamScenarioHierarchyNode_Object.cpp:42
bool rebuild_scenario_folders(BlamTag *active_scenario, BlamScenarioHierarchy *hierarchy)
Definition: scenario_save.cpp:15
SAPIEN_LIB_API bool IsConfigReady()
Checks whether the configuration file is ready for use.
Definition: config.cpp:48
int folder_id
The folder ID of this group. This number should be unique within the hierarchy.
Definition: hierarchy.h:90
#define SAPIEN_LIB_API
Definition: config.h:13
Class representing a scenario hierarchy.
Definition: hierarchy.h:223
virtual std::string GetName()
Retrieves the display name of the hierarchy node.
Definition: BlamScenarioHierarchyNode.cpp:15
SAPIEN_LIB_API BlamResult LoadConfig()
Loads the default Sapien configuration file.
Definition: config.cpp:10
Base class for hierarchy nodes.
Definition: hierarchy.h:29
int GetChildCount()
Retrieves the total number of child nodes.
Definition: BlamScenarioHierarchyNode_Group.cpp:69
Class representing an object hierarchy node.
Definition: hierarchy.h:175
BlamScenarioHierarchyNode * GetChildAt(int index)
Retrieves the child node at the specified index.
Definition: BlamScenarioHierarchyNode_Group.cpp:59
Class representing a group hierarchy node.
Definition: hierarchy.h:84
SAPIEN_LIB_API void SaveScenario()
Attempts to save any changes back to the scenario tag.
Definition: scenario_save.cpp:249
#define SAPIEN_CONFIG_DEFAULT_NAME
The default filename for Sapien's configuration.
Definition: config.h:16
SAPIEN_LIB_API BlamScenarioHierarchy * GetHierarchy()
Retrieves the current scenario hierarchy.
Definition: hierarchy.cpp:24
SAPIEN_LIB_API BlamTagField_Block * GetPaletteItems(BlamTag *scenario, std::string type)
Retrieves a palette items block from a scenario tag.
Definition: scenario.cpp:217
Namespace for anything related to Sapien's configuration.
Definition: config.h:21
std::vector< BlamScenarioHierarchyNode_Object * > GetAllObjectNodes()
Generates a list of all object nodes, within any child hierarchy nodes.
Definition: BlamScenarioHierarchy.cpp:221
@ Object
Indicates the hierarchy node is a BlamScenarioHierarchyNode_Object.