 |
Blamite Game Engine - Guerilla (Library)
00421.06.29.24.2305.blamite
The tag editor for the Blamite Game Engine.
|
Go to the documentation of this file.
5 #ifdef GUERILLA_LIB_EXPORTS
6 #define GUERILLA_LIB_API __declspec(dllexport)
8 #define GUERILLA_LIB_API __declspec(dllimport)
26 bool single_line_edit =
false;
31 std::string
GenerateCppStructString(std::string line_prefix =
"",
bool generate_doxygen_comments =
true)
override;
35 bool ParseXMLData(rapidxml::xml_node<>* field_node)
override;
48 void* data_address =
nullptr;
73 std::vector<char> GetReferencedDataAsBytes();
82 void SetText(std::string text_value);
89 std::string GetValueAsString();
Class representing a tag field.
Definition: fields.h:244
#define GUERILLA_LIB_API
Definition: dataref.h:8
virtual BlamTagField * GenerateTagField(BlamTag *tag)
Generates a new tag field from this plugin field.
Definition: BlamPluginField.cpp:41
BlamDatarefValueHintType
Enumerator listing all supported dataref value hint types.
Definition: fields.h:30
BlamTagField_Dataref(BlamTag *_tag)
Constructs a new dataref tag field.
Definition: BlamTagField_Dataref.cpp:8
std::vector< char > GetReferencedDataAsBytes()
Compiles the referenced data into a list of bytes.
Definition: BlamTagField_Dataref.cpp:69
virtual std::string GenerateXMLString()
Generates a string representing this plugin field.
Definition: BlamPluginField.cpp:61
void SetText(std::string text_value)
Sets the dataref's stored value to a given string.
Definition: BlamTagField_Dataref.cpp:78
BlamDatarefValueHintType value_hint
A string that can be checked against to determine the type of data being stored.
Definition: dataref.h:56
std::string field_id
The ID of this field.
Definition: fields.h:256
BlamTagFieldType GetType()
Retrieves the type of this field.
Definition: BlamPluginField.cpp:31
std::string GenerateCppStructString(std::string line_prefix="", bool generate_doxygen_comments=true) override
Generates a string containing C++ code representing this plugin field.
Definition: BlamPluginField_Dataref.cpp:45
virtual std::string GenerateXMLString()
Generates a string with the field ID and value, ready to be written to an XML file.
Definition: BlamTagField.cpp:9
bool single_line_edit
Whether or not to show a basic, line edit control (similar to ascii) when editing this field.
Definition: dataref.h:26
BlamPluginField * Copy(BlamPlugin *new_plugin) override
Creates a copy of this plugin field.
Definition: BlamPluginField_Dataref.cpp:142
std::string display_name
The display name of the field.
Definition: fields.h:81
Class representing a plugin field.
Definition: fields.h:71
Class representing a dataref tag field.
Definition: dataref.h:45
Class representing a Tag.
Definition: tags.h:296
@ NONE
No value hint, no special treatment will be given to the data.
virtual BlamPluginField * Copy(BlamPlugin *new_plugin)
Creates a copy of this plugin field.
Definition: BlamPluginField.cpp:229
std::string GetValueAsString()
Retrieves the dataref's value as a string.
Definition: BlamTagField_Dataref.cpp:91
bool visible
Whether or not the field is visible.
Definition: fields.h:80
Class representing a dataref plugin field.
Definition: dataref.h:17
virtual bool ParseXMLData(rapidxml::xml_node<> *field_node)
Populates data within the plugin field from an XML node.
Definition: BlamPluginField.cpp:106
int data_size
The size of the referenced data.
Definition: dataref.h:49
Class representing a Plugin.
Definition: tags.h:80
std::string field_id
The ID of the field.
Definition: fields.h:83
BlamPluginField_Dataref(BlamPluginField *base_field)
Definition: BlamPluginField_Dataref.cpp:9
void * data_address
The address of the referenced data.
Definition: dataref.h:48
std::string GenerateXMLString() override
Generates a string representing this plugin field.
Definition: BlamPluginField_Dataref.cpp:14
BlamPluginField * plugin_field
The plugin data associated with this field, if any.
Definition: fields.h:255
BlamDatarefValueHintType value_hint
A string that can be displayed to indicate the type of data expected within a dataref.
Definition: dataref.h:25
BlamTagField * GenerateTagField(BlamTag *tag, void *address) override
Generates a new tag field from this plugin field.
Definition: BlamPluginField_Dataref.cpp:62
std::string description
An optional description of the field.
Definition: fields.h:82
std::string GenerateXMLString() override
Generates a string with the field ID and value, ready to be written to an XML file.
Definition: BlamTagField_Dataref.cpp:13
int offset
The offset of the field data.
Definition: fields.h:78
bool ParseXMLData(rapidxml::xml_node<> *field_node) override
Populates data within the plugin field from an XML node.
Definition: BlamPluginField_Dataref.cpp:103
virtual std::string GenerateCppClassString(std::string line_prefix="")
Generates a string containing C++ code representing this plugin field.
Definition: BlamPluginField.cpp:101
std::vector< char > GetValueAsBytes() override
Retrieves the field value as a list of bytes.
Definition: BlamTagField_Dataref.cpp:37
virtual std::string GenerateCppStructString(std::string line_prefix="", bool generate_doxygen_comments=true)
Generates a string containing C++ code representing this plugin field.
Definition: BlamPluginField.cpp:96
virtual std::vector< char > GetValueAsBytes()
Retrieves the field value as a list of bytes.
Definition: BlamTagField.cpp:14
std::string GenerateCppClassString(std::string line_prefix="") override
Generates a string containing C++ code representing this plugin field.
Definition: BlamPluginField_Dataref.cpp:57