Elaztek Developer Hub
Blamite Game Engine - Sapien (Library)  00423.10.27.24.0533.blamite
The level editor application for the Blamite Game Engine.
scenario.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <HEKGuerilla/components/tags/tags.h>
4 #include <HEKGuerilla/components/tags/fields/block/block.h>
5 #include <HEKGuerilla/components/projects/projects.h>
6 
7 #ifdef SAPIEN_LIB_EXPORTS
8 #define SAPIEN_LIB_API __declspec(dllexport)
9 #else
10 #define SAPIEN_LIB_API __declspec(dllimport)
11 #endif
12 
20 {
26  SAPIEN_LIB_API BlamProject* GetActiveProject();
27 
34 
43  SAPIEN_LIB_API bool LoadScenario(std::string project_name, std::string tag_path);
44 
55  SAPIEN_LIB_API bool LoadScenario_Stage1(std::string project_name, std::string tag_path);
56 
69  SAPIEN_LIB_API bool LoadScenario_Stage2(std::string project_name, std::string tag_path);
70 
82  SAPIEN_LIB_API bool LoadScenario_Stage3(std::string project_name, std::string tag_path);
83 
95  SAPIEN_LIB_API bool LoadScenario_Stage4(std::string project_name, std::string tag_path);
96 
107  SAPIEN_LIB_API bool LoadScenario_Stage5(std::string project_name, std::string tag_path);
108 
113 
120  SAPIEN_LIB_API std::vector<std::string> GetPaletteTypes();
121 
130  SAPIEN_LIB_API BlamTagField_Block* GetPalette(BlamTag* scenario, std::string type);
131 
140  SAPIEN_LIB_API BlamTagField_Block* GetPaletteItems(BlamTag* scenario, std::string type);
141 
142  SAPIEN_LIB_API bool PlaceNewInstance(BlamVector3 position, std::string type, int index, int folder_index);
143 }
BlamScenarioHierarchyNode_Object::world_object
BlamWorldObject * world_object
The world object that this node refers to.
Definition: hierarchy.h:178
Sapien::Scenario::GetActiveScenarioTag
SAPIEN_LIB_API BlamTag * GetActiveScenarioTag()
Retrieves the currently active scenario tag.
Definition: scenario.cpp:28
SAPIEN_LIB_API
#define SAPIEN_LIB_API
Definition: scenario.h:10
BlamScenarioHierarchy::Refresh
void Refresh()
Rebuilds the entire hierarchy data from world state and active scenario, cleaning up old data in the ...
Definition: BlamScenarioHierarchy.cpp:24
Sapien::Scenario::GetPaletteTypes
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:219
active_scenario
BlamTag * active_scenario
Definition: scenario.cpp:20
BlamScenarioHierarchy::folder_ids
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
Sapien::Scenario::GetActiveProject
SAPIEN_LIB_API BlamProject * GetActiveProject()
Retrieves the currently active project.
Definition: scenario.cpp:23
Sapien::Scenario::GetPalette
SAPIEN_LIB_API BlamTagField_Block * GetPalette(BlamTag *scenario, std::string type)
Retrieves a palette block from a scenario tag.
Definition: scenario.cpp:227
Sapien::Scenario::LoadScenario
SAPIEN_LIB_API bool LoadScenario(std::string project_name, std::string tag_path)
Loads a scenario tag.
Definition: scenario.cpp:167
Sapien::Scenario::LoadScenario_Stage2
SAPIEN_LIB_API bool LoadScenario_Stage2(std::string project_name, std::string tag_path)
Performs stage 2 of loading a scenario tag.
Definition: scenario.cpp:54
Sapien::Scenario::LoadScenario_Stage3
SAPIEN_LIB_API bool LoadScenario_Stage3(std::string project_name, std::string tag_path)
Performs stage 3 of loading a scenario tag.
Definition: scenario.cpp:90
Sapien::Hierarchy::PrepareHierarchy
SAPIEN_LIB_API void PrepareHierarchy()
Prepares a new scenario hierarchy.
Definition: hierarchy.cpp:7
Sapien::Scenario
Namespace containing functions for interacting with a scenario.
Definition: scenario.h:19
BlamScenarioHierarchy
Class representing a scenario hierarchy.
Definition: hierarchy.h:223
Sapien::Scenario::LoadScenario_Stage5
SAPIEN_LIB_API bool LoadScenario_Stage5(std::string project_name, std::string tag_path)
Performs stage 5 of loading a scenario tag.
Definition: scenario.cpp:144
BlamScenarioHierarchyNode_Object
Class representing an object hierarchy node.
Definition: hierarchy.h:175
scenario.h
Sapien::Scenario::SaveScenario
SAPIEN_LIB_API void SaveScenario()
Attempts to save any changes back to the scenario tag.
Definition: scenario_save.cpp:249
Sapien::Hierarchy::GetHierarchy
SAPIEN_LIB_API BlamScenarioHierarchy * GetHierarchy()
Retrieves the current scenario hierarchy.
Definition: hierarchy.cpp:24
active_project
BlamProject * active_project
Definition: scenario.cpp:21
config.h
Sapien::Scenario::LoadScenario_Stage4
SAPIEN_LIB_API bool LoadScenario_Stage4(std::string project_name, std::string tag_path)
Performs stage 4 of loading a scenario tag.
Definition: scenario.cpp:122
Sapien::Scenario::GetPaletteItems
SAPIEN_LIB_API BlamTagField_Block * GetPaletteItems(BlamTag *scenario, std::string type)
Retrieves a palette items block from a scenario tag.
Definition: scenario.cpp:237
hierarchy.h
Sapien::Scenario::PlaceNewInstance
SAPIEN_LIB_API bool PlaceNewInstance(BlamVector3 position, std::string type, int index, int folder_index)
Definition: scenario.cpp:247
Sapien::Scenario::LoadScenario_Stage1
SAPIEN_LIB_API bool LoadScenario_Stage1(std::string project_name, std::string tag_path)
Performs stage 1 of loading a scenario tag.
Definition: scenario.cpp:33