![]() |
Blamite Game Engine - blam!
00310.02.05.21.0336.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 () | |
bool | SetTagPath (std::string new_path) |
Updates the tag path. More... | |
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... | |
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.
|
inline |
|
inline |
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.
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.