![]() |
Blamite Game Engine - Guerilla (Library)
00352.03.28.22.1329.blamite
The tag editor for the Blamite Game Engine.
|
Class representing a plugin field. More...
#include <fields.h>
Public Member Functions | |
BlamPluginField (BlamPlugin *_plugin, BlamTagFieldType _type) | |
Constructs a new plugin field. More... | |
BlamPluginField (BlamPluginField *_old_field) | |
Constructs a new plugin field. More... | |
BlamTagFieldType | GetType () |
Retrieves the type of this field. More... | |
BlamPlugin * | GetPlugin () |
Retrieves the plugin this field is associated with. More... | |
virtual BlamTagField * | GenerateTagField (BlamTag *tag) |
Generates a new tag field from this plugin field. More... | |
virtual BlamTagField * | GenerateTagField (BlamTagField *existing_tag_field) |
Generates a new tag field from this plugin field. More... | |
virtual BlamTagField * | GenerateTagField (BlamTag *tag, void *address) |
Generates a new tag field from this plugin field. More... | |
Public Attributes | |
int | offset = 0x0 |
The offset of the field data. More... | |
int | length = 0x0 |
The length of the field data. More... | |
bool | visible = true |
Whether or not the field is visible. More... | |
std::string | display_name = "" |
The display name of the field. More... | |
std::string | description = "" |
An optional description of the field. More... | |
std::string | field_id = "" |
The ID of the field. More... | |
Class representing a plugin field.
Plugin fields are used to store additional, non-data information related to a tag field. This information can include things display names, descriptions, and visibility. It also stores the offset and length of the data - which is required for tag compilation.
BlamPluginField::BlamPluginField | ( | BlamPlugin * | _plugin, |
BlamTagFieldType | _type | ||
) |
Constructs a new plugin field.
_plugin | - The plugin this field should be associated with. |
_type | - The type of the field. |
BlamPluginField::BlamPluginField | ( | BlamPluginField * | _old_field | ) |
Constructs a new plugin field.
_old_field | - The old field to load data from. Becomes invalid after construction. |
|
virtual |
Generates a new tag field from this plugin field.
With this overload, a brand new tag field is created with no value.
tag | - The tag the new field should belong to. |
|
virtual |
Generates a new tag field from this plugin field.
With this overload, a new field is created and its value(s) are read from the tag data. This should only be used when reading binary (compiled) tag files.
tag | - The tag the new field should belong to. |
address | - The address of the field value. |
|
virtual |
Generates a new tag field from this plugin field.
With this overload, the tag field remains unchanged but has this plugin field assigned to it.
existing_tag_field | - The existing tag field to associate this plugin field with. |
existing_tag_field
. BlamPlugin * BlamPluginField::GetPlugin | ( | ) |
Retrieves the plugin this field is associated with.
BlamTagFieldType BlamPluginField::GetType | ( | ) |
std::string BlamPluginField::description = "" |
An optional description of the field.
std::string BlamPluginField::display_name = "" |
The display name of the field.
std::string BlamPluginField::field_id = "" |
The ID of the field.
int BlamPluginField::length = 0x0 |
The length of the field data.
int BlamPluginField::offset = 0x0 |
The offset of the field data.
bool BlamPluginField::visible = true |
Whether or not the field is visible.