![]() |
Blamite Game Engine - Guerilla (Library)
00355.06.11.22.0220.blamite
The tag editor for the Blamite Game Engine.
|
Class representing a tag field. More...
#include <fields.h>
Public Member Functions | |
BlamTagField (BlamTag *_tag, BlamTagFieldType _type) | |
Constructs a new tag field. More... | |
virtual std::string | GenerateXMLString () |
Generates a string with the field ID and value, ready to be written to an XML file. More... | |
virtual std::vector< char > | GetValueAsBytes () |
Retrieves the field value as a list of bytes. More... | |
BlamTagFieldType | GetType () |
Retrieves the type of this field. More... | |
BlamTag * | GetTag () |
Retrieves the tag associated with this field. More... | |
BlamPluginField * | GetPluginField () |
Retrieves the plugin data associated with this field, if available. More... | |
bool | HasPluginField () |
Checks whether the field has plugin data available. More... | |
Public Attributes | |
BlamPluginField * | plugin_field = nullptr |
The plugin data associated with this field, if any. More... | |
std::string | field_id = "" |
The ID of this field. More... | |
Class representing a tag field.
Tag fields only store a field ID and value. This class is intended to be used as an interface, in that storing the field value is entirely up to the child class which inherits this class.
BlamTagField::BlamTagField | ( | BlamTag * | _tag, |
BlamTagFieldType | _type | ||
) |
Constructs a new tag field.
_tag | - The tag to associate with this field. |
_type | - The type of the field. |
|
virtual |
Generates a string with the field ID and value, ready to be written to an XML file.
Reimplemented in BlamTagField_Block, BlamTagField_Bitfield, BlamTagField_Enum, BlamTagField_Comment, BlamTagField_Tagref, BlamTagField_Ascii, BlamTagField_Int, BlamTagField_Float32, and BlamTagField_Dataref.
BlamPluginField * BlamTagField::GetPluginField | ( | ) |
Retrieves the plugin data associated with this field, if available.
nullptr
is returned. BlamTag * BlamTagField::GetTag | ( | ) |
Retrieves the tag associated with this field.
BlamTagFieldType BlamTagField::GetType | ( | ) |
Retrieves the type of this field.
|
virtual |
Retrieves the field value as a list of bytes.
Reimplemented in BlamTagField_Block, BlamTagField_Bitfield, BlamTagField_Enum, BlamTagField_Comment, BlamTagField_Tagref, BlamTagField_Ascii, BlamTagField_Int, BlamTagField_Float32, and BlamTagField_Dataref.
bool BlamTagField::HasPluginField | ( | ) |
Checks whether the field has plugin data available.
true
if the field has plugin data available, otherwise returns false
. std::string BlamTagField::field_id = "" |
The ID of this field.
BlamPluginField* BlamTagField::plugin_field = nullptr |
The plugin data associated with this field, if any.