![]() |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
Class used to contain and access tag data. More...
#include <tags.h>
Public Member Functions | |
BlamTagData () | |
~BlamTagData () | |
bool | SetTagPath (std::string new_path) |
Updates the tag path. More... | |
BlamTagInstance * | CreateNewInstance () |
BlamTagInstance * | GetInstance (std::string identifier) |
Public Attributes | |
void * | address = nullptr |
The address pointing to the start of the tag's data. More... | |
int | size = 0 |
The size of the tag's data in memory. More... | |
char | path [256] |
The tag's path. More... | |
std::string | tag_class = "" |
The tag's short class name. More... | |
TagOrigin | origin = TagOrigin::Memory |
The origin of the tag. More... | |
std::vector< BlamTagInstance * > | instances = std::vector<BlamTagInstance*>() |
Class used to contain and access tag data.
These store any data needed for tags that isn't strictly the tag's property data - such as the tag class, tag name/path, etc.
BlamTagData::BlamTagData | ( | ) |
BlamTagData::~BlamTagData | ( | ) |
BlamTagInstance * BlamTagData::CreateNewInstance | ( | ) |
BlamTagInstance * BlamTagData::GetInstance | ( | std::string | identifier | ) |
bool BlamTagData::SetTagPath | ( | std::string | new_path | ) |
Updates the tag path.
new_path | - The new tag path to use. Maximum length is 256 characters. |
true
if the tag path was updated successfully, or false
if the provided path was too long. void* BlamTagData::address = nullptr |
The address pointing to the start of the tag's data.
std::vector<BlamTagInstance*> BlamTagData::instances = std::vector<BlamTagInstance*>() |
TagOrigin BlamTagData::origin = TagOrigin::Memory |
The origin of the tag.
char BlamTagData::path[256] |
The tag's path.
This does not always represent a file on disk, but the relative path of the tag's file from the tag data root. For instance, a tag located at:
./tags/levels/solo/040_voi/040_voi.scenario
would have a path
of:
/levels/solo/040_voi/040_voi.scenario
Tag paths can be up to 255 characters long, exclduing null-terminator.
int BlamTagData::size = 0 |
The size of the tag's data in memory.
std::string BlamTagData::tag_class = "" |
The tag's short class name.