![]() |
Blamite Game Engine - Guerilla (Library)
00430.01.19.25.2136.blamite
The tag editor for the Blamite Game Engine.
|
Class representing a fieldref plugin field. More...
#include <fieldref.h>
Public Member Functions | |
BlamPluginField_Fieldref (BlamPluginField *base_field) | |
std::string | GenerateCppStructString (std::string line_prefix="", bool generate_doxygen_comments=true) override |
Generates a string containing C++ code representing this plugin field. More... | |
std::string | GenerateCppClassString (std::string line_prefix="") override |
Generates a string containing C++ code representing this plugin field. More... | |
BlamTagField * | GenerateTagField (BlamTag *tag, void *address) override |
Generates a new tag field from this plugin field. More... | |
BlamTagField * | GenerateTagField (BlamTag *tag) override |
Generates a new tag field from this plugin field. More... | |
BlamPluginField * | Copy (BlamPlugin *new_plugin) override |
Creates a copy of this plugin field. More... | |
![]() | |
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 (BlamTagField *existing_tag_field) |
Generates a new tag field from this plugin field. More... | |
virtual std::string | GenerateXMLString () |
Generates a string representing this plugin field. More... | |
virtual void | UpdateOffsetData (int new_offset) |
Updates any offsets or lengths for the given field. More... | |
virtual bool | ParseXMLData (rapidxml::xml_node<> *field_node) |
Populates data within the plugin field from an XML node. More... | |
void | ChangeType (BlamTagFieldType new_type) |
Changes the type of a plugin field. More... | |
Additional Inherited Members | |
![]() | |
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... | |
std::string | input_hint = "" |
An additional piece of short text that can be used to suggest valid input for a field. More... | |
bool | require_unused_visible = false |
If enabled, this field will only be visible when "Show Unused Fields" is enabled. More... | |
std::string | default_value = "" |
The default text value for the field. More... | |
Class representing a fieldref plugin field.
Field reference fields allow for tags to refer to other fields within a tag. This can be used to allow for parameterization of tag fields for easy use by other plugins. For instance, object tags can reference parameters from themselves and allow them to be accessible via a material tag - allowing for materials to tweak their data based on what object is using them (for instance, providing team color information).
BlamPluginField_Fieldref::BlamPluginField_Fieldref | ( | BlamPluginField * | base_field | ) |
|
overridevirtual |
Creates a copy of this plugin field.
This method will create a duplicate of this plugin field, as well as any child field data. Note that the copied field memory must be managed and freed by the calling code.
new_plugin | - The new plugin to associate with the copied field. If set to nullptr , then the plugin from the original field is used. |
Reimplemented from BlamPluginField.
|
overridevirtual |
Generates a string containing C++ code representing this plugin field.
This method will generate a string containing C++ code that is intended for use within the BlamTagClass class. This class is used by the game engine to store a tag class layout, allowing for in-engine tools to present a tag data editing UI among other things.
line_prefix | - A string that should be placed before each line, such as a certain amount of indentation spaces. |
Reimplemented from BlamPluginField.
|
overridevirtual |
Generates a string containing C++ code representing this plugin field.
This method will generate a string containing C++ code that is intended for use within the tag class data structure. This is intended to be used when exporting a tag class to C++ code.
line_prefix | - A string that should be placed before each line, such as a certain amount of indentation spaces. |
Reimplemented from BlamPluginField.
|
overridevirtual |
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. |
Reimplemented from BlamPluginField.
|
overridevirtual |
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. |
Reimplemented from BlamPluginField.