Elaztek Developer Hub
Blamite Game Engine - blam!  00310.02.05.21.0336.blamite
The core library for the Blamite Game Engine.
BlamTagData Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ BlamTagData()

BlamTagData::BlamTagData ( )
inline

Member Function Documentation

◆ SetTagPath()

bool BlamTagData::SetTagPath ( std::string  new_path)
inline

Updates the tag path.

Parameters
new_path- The new tag path to use. Maximum length is 256 characters.
Returns
true if the tag path was updated successfully, or false if the provided path was too long.

Member Data Documentation

◆ address

void* BlamTagData::address = nullptr

The address pointing to the start of the tag's data.

◆ origin

TagOrigin BlamTagData::origin = TagOrigin::Memory

The origin of the tag.

◆ path

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.

◆ size

int BlamTagData::size = 0

The size of the tag's data in memory.

◆ tag_class

std::string BlamTagData::tag_class = ""

The tag's short class name.


The documentation for this class was generated from the following file: