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

Class used to contain and access tag data. More...

#include <tags.h>

+ Collaboration diagram for BlamTagData:

Public Member Functions

 BlamTagData ()
 
 ~BlamTagData ()
 
bool SetTagPath (std::string new_path)
 Updates the tag path. More...
 
BlamTagInstanceCreateNewInstance ()
 
BlamTagInstanceGetInstance (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*>()
 

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 ( )

◆ ~BlamTagData()

BlamTagData::~BlamTagData ( )

Member Function Documentation

◆ CreateNewInstance()

BlamTagInstance * BlamTagData::CreateNewInstance ( )
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetInstance()

BlamTagInstance * BlamTagData::GetInstance ( std::string  identifier)

◆ SetTagPath()

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

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.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ address

void* BlamTagData::address = nullptr

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

◆ instances

std::vector<BlamTagInstance*> BlamTagData::instances = std::vector<BlamTagInstance*>()

◆ 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 files: