![]() |
Blamite Game Engine - Guerilla (Library)
00390.07.02.23.1947.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 | |
int | c_entry_index = 0 |
Temporary field storing the entry index of this field's parent block. Used only during compilation. More... | |
int | c_entry_size = 0 |
Temporary field storing the entry size of this field's parent block. Used only during compilation. More... | |
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_Dataref, BlamTagField_Bitfield, BlamTagField_Comment, BlamTagField_Enum, BlamTagField_Tagref, BlamTagField_Vector, BlamTagField_Ascii, BlamTagField_Color, BlamTagField_Int, and BlamTagField_Float32.
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_Dataref, BlamTagField_Bitfield, BlamTagField_Comment, BlamTagField_Enum, BlamTagField_Tagref, BlamTagField_Vector, BlamTagField_Ascii, BlamTagField_Color, BlamTagField_Int, and BlamTagField_Float32.
bool BlamTagField::HasPluginField | ( | ) |
Checks whether the field has plugin data available.
true
if the field has plugin data available, otherwise returns false
. int BlamTagField::c_entry_index = 0 |
Temporary field storing the entry index of this field's parent block. Used only during compilation.
int BlamTagField::c_entry_size = 0 |
Temporary field storing the entry size of this field's parent block. Used only during compilation.
std::string BlamTagField::field_id = "" |
The ID of this field.
BlamPluginField* BlamTagField::plugin_field = nullptr |
The plugin data associated with this field, if any.