![]() |
Blamite Game Engine - blam!
00346.12.11.21.0529.blamite
The core library for the Blamite Game Engine.
|
Structure representing a tag reference. More...
#include <tags.h>
Public Member Functions | |
tag_reference () | |
Initializes a new tag_reference. More... | |
bool | ResolveReference () |
Attempts to resolve a tag reference. More... | |
std::string | GetTagPath () |
Retrieves the path of the tag that this tagref refers to. More... | |
Public Attributes | |
char | identifier [8] |
The tag reference identifier. Will always be trfd followed by 4 NULL bytes. More... | |
char | class_name [4] |
The tag class identifier. Will be the short class name. More... | |
char | padding0 [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 | padding1 [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.
tag_reference::tag_reference | ( | ) |
Initializes a new tag_reference.
std::string tag_reference::GetTagPath | ( | ) |
Retrieves the path of the tag that this tagref refers to.
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] |
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[8] |
The tag reference identifier. Will always be trfd
followed by 4 NULL
bytes.
char tag_reference::padding0[4] |
Empty padding.
char tag_reference::padding1[3] |
Empty padding. Should always be NULL
.
void* tag_reference::tagref_address = nullptr |
The address of the tagref data.