![]() |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
Structure representing a tag reference. More...
#include <tags.h>
Public Member Functions | |
bool | ResolveReference () |
Attempts to resolve a tag reference. More... | |
std::string | GetTagPath () |
Retrieves the path of the tag that this tagref refers to. More... | |
bool | HasReference () |
Checks if a tag reference has a tag specified or not. More... | |
Public Attributes | |
char | identifier [4] = {'t','r','f','d'} |
The tag reference identifier. Will always be trfd . More... | |
char | padding0 [4] |
Empty padding. More... | |
char | class_name [4] = {'\0','\0','\0','\0'} |
The tag class identifier. Will be the short class name. More... | |
char | padding1 [4] |
Empty padding. More... | |
void * | tagref_address = nullptr |
The address of the tagref data. More... | |
bool | data_is_tag = false |
Whether or not tagref_address points to tag data, or the tag's path. More... | |
char | padding2 [3] |
Empty padding. Should always be NULL . More... | |
int | data_size = 0 |
The size of tagref_address . More... | |
Structure representing a tag reference.
Tag references allow for tags to reference other tags that are associated with them. For instance, a render_model
tag might reference a shader
, and shader
s might reference bitmap
s.
std::string tag_reference::GetTagPath | ( | ) |
Retrieves the path of the tag that this tagref refers to.
bool tag_reference::HasReference | ( | ) |
Checks if a tag reference has a tag specified or not.
If a tag reference is empty, then reference resolving is not required.
true
if the tagref references a tag, otherwise returns false
. bool tag_reference::ResolveReference | ( | ) |
Attempts to resolve a tag reference.
This only needs to be performed once per tag reference.
true
if the tagref was resolved successfully, otherwise returns false
. If this returns false
, then either the tag could not be found, or the tag class was invalid. char tag_reference::class_name[4] = {'\0','\0','\0','\0'} |
The tag class identifier. Will be the short class name.
bool tag_reference::data_is_tag = false |
Whether or not tagref_address
points to tag data, or the tag's path.
int tag_reference::data_size = 0 |
The size of tagref_address
.
char tag_reference::identifier[4] = {'t','r','f','d'} |
The tag reference identifier. Will always be trfd
.
char tag_reference::padding0[4] |
Empty padding.
char tag_reference::padding1[4] |
Empty padding.
char tag_reference::padding2[3] |
Empty padding. Should always be NULL
.
void* tag_reference::tagref_address = nullptr |
The address of the tagref data.