![]() |
Blamite Game Engine - blam!
00453.06.08.26.0624.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... | |
| void * | GetTagData () |
| Retrieves the tag data. 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 shaders might reference bitmaps.
| void * tag_reference::GetTagData | ( | ) |
Retrieves the tag data.
If the tag has not yet been resolved, attempts to resolve the tag reference.
nullptr if the tag could not be resolved.
Here is the call graph for this function:| std::string tag_reference::GetTagPath | ( | ) |
Retrieves the path of the tag that this tagref refers to.
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
Here is the call graph for this function:
Here is the caller graph for this function:| 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.