![]() |
Blamite Game Engine - blam!
00310.02.05.21.0336.blamite
The core library for the Blamite Game Engine.
|
Base class representing a plugin field. More...
#include <BlamPluginField.h>
Public Member Functions | |
BlamPluginField (BlamPluginFieldType _type, std::string _display_name, std::string _extra_info) | |
virtual void | ShowImPropertyControl () |
Shows a set of ImGUI controls representing the tag field. More... | |
virtual void | SetMemoryLocation (void *new_address) |
Sets the address of the data that the plugin field should display. More... | |
virtual std::string | GetFieldXMLString (int offset) |
Generates a string representing an XML node associated with this tag field, used for generating plugin files. More... | |
Public Attributes | |
std::string | display_name |
The display name of the tag field. More... | |
std::string | extra_info |
Additional information to show alongside the field. More... | |
void * | read_address |
The address of the data the field is currently representing. More... | |
int | read_length |
How many bytes to read from the start of the address. More... | |
BlamPluginFieldType | type |
The type of the field. More... | |
Base class representing a plugin field.
Plugin fields are used to store information about a tag's layout. This layout can be used to generate an XML file for use with Guerilla and other tools, as well as generate an in-engine tag editor using ImGUI.
In addition to being used to store layout information, they can also contain non-data information, such as a display name, additional information, and potentially other information depending on the specific field type.
BlamPluginField::BlamPluginField | ( | BlamPluginFieldType | _type, |
std::string | _display_name, | ||
std::string | _extra_info | ||
) |
|
virtual |
Generates a string representing an XML node associated with this tag field, used for generating plugin files.
If this function is not overridden in the child class, the resulting string describes an unknown tag field.
offset | - The offset of this field relative to either the start of the tag data, or relative to the start of tag block entry data. |
Reimplemented in BlockField, TagReferenceField, EnumField, DataReferenceField, BitfieldField, CommentField, BooleanField, ColorField, AsciiField, and IntField.
|
virtual |
Sets the address of the data that the plugin field should display.
new_address | - The address of the field data. |
Reimplemented in BlockField.
|
virtual |
Shows a set of ImGUI controls representing the tag field.
If this function is not overridden in the child class, a warning message is displayed instead.
Reimplemented in BlockField, TagReferenceField, DataReferenceField, EnumField, BitfieldField, CommentField, BooleanField, ColorField, AsciiField, and IntField.
std::string BlamPluginField::display_name |
The display name of the tag field.
std::string BlamPluginField::extra_info |
Additional information to show alongside the field.
void* BlamPluginField::read_address |
The address of the data the field is currently representing.
int BlamPluginField::read_length |
How many bytes to read from the start of the address.
BlamPluginFieldType BlamPluginField::type |
The type of the field.