 |
Blamite Game Engine - Guerilla (Library)
00384.05.11.23.0458.blamite
The tag editor for the Blamite Game Engine.
|
Go to the documentation of this file.
8 #ifdef GUERILLA_LIB_EXPORTS
9 #define GUERILLA_LIB_API __declspec(dllexport)
11 #define GUERILLA_LIB_API __declspec(dllimport)
45 std::vector<BlamPluginField*>
fields;
47 int c_entry_count = 0;
48 int c_entry_offset = 0;
89 bool AddEntry(
int offset = -1);
90 bool DuplicateEntry(
int index);
91 bool DeleteEntry(
int index);
92 void DeleteAllEntries();
105 std::vector<char> GetEntryDataAsBytes();
Class representing a tag field.
Definition: fields.h:164
@ Int16
Indicates that the field is a 16-bit integer.
BlamTagFieldType GetType()
Retrieves the type of this field.
Definition: BlamTagField.cpp:19
@ Real
Indicates that the field is a Float32.
virtual BlamTagField * GenerateTagField(BlamTag *tag)
Generates a new tag field from this plugin field.
Definition: BlamPluginField.cpp:54
int data_size
Definition: tagref.h:25
@ Int32
Indicates that the field is a 32-bit integer.
std::vector< BlamEnumFieldOption > options
The list of options within the enum.
Definition: enum.h:34
int entry_size
The size of a each block entry.
Definition: block.h:44
BlamTagBlockEntry * Copy()
Definition: BlamTagBlockEntry.cpp:45
@ Enum8
Indicates that the field is an Enum8.
BlamPluginField * GetField(std::string id)
Definition: BlamPluginField_Block.cpp:22
Class representing a plugin enum field.
Definition: enum.h:31
@ Vector4
Indicates that the field is a vector4.
std::vector< BlamBitfieldBitData > bits
The list of bits within this bitfield.
Definition: bitfield.h:60
#define GUERILLA_BITFIELD_DECOMPILE_SET_BITFIELD_BIT(index)
Definition: BlamPluginField.cpp:14
BlamPluginField * GetPluginField()
Retrieves the plugin data associated with this field, if available.
Definition: BlamTagField.cpp:29
virtual std::string GenerateXMLString()
Generates a string representing this plugin field.
Definition: BlamPluginField.cpp:351
BlamTag * GetTag()
Retrieves the tag associated with this field.
Definition: BlamTagField.cpp:24
@ Block
Indicates that the field is a tag block.
std::vector< BlamTagBlockEntry * > entries
The list of entries within this block.
Definition: block.h:80
~BlamPluginField_Block()
Definition: BlamPluginField_Block.cpp:12
@ Ascii
Indicates that the field is a string of text.
std::string field_id
The ID of this field.
Definition: fields.h:175
BlamVector4 value
The value of the field, represented as a 4D vector.
Definition: vector.h:23
@ Dataref
Indicates that the field is a data reference.
BlamTagFieldType GetType()
Retrieves the type of this field.
Definition: BlamPluginField.cpp:44
@ Enum16
Indicates that the field is an Enum16.
Data structure representing a tag block entry.
Definition: block.h:17
void DeleteAllEntries()
Definition: BlamTagField_Block.cpp:82
std::vector< char > GetEntryDataAsBytes()
Compiles the entry data into a list of bytes.
Definition: BlamTagField_Block.cpp:211
@ Bitfield16
Indicates that the field is a Bitfield16.
BlamTagFieldType
Enumerator containing all possible tag field types.
Definition: fields.h:23
@ Int8
Indicates that the field is an 8-bit integer.
BlamColor value
The value of the field, represented as a color.
Definition: color.h:22
Class representing a float32 tag field.
Definition: float32.h:16
std::string referenced_tag_class
Definition: tagref.h:29
Class representing a block plugin field.
Definition: block.h:41
@ Color
Indicates that the field is a color.
void * data_address
Definition: tagref.h:26
@ Comment
Indicates that the field is a comment. These do not store any tag data.
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
virtual void UpdateOffsetData(int new_offset)
Updates any offsets or lengths for the given field.
Definition: BlamPluginField.cpp:360
bool DeleteEntry(int index)
Definition: BlamTagField_Block.cpp:63
std::string display_name
The display name of the field.
Definition: fields.h:69
Clas representing a bitfield tag field.
Definition: bitfield.h:57
Class representing a block tag field.
Definition: block.h:77
BlamTagField * GetField(std::string field_id)
Definition: BlamTagBlockEntry.cpp:13
Class representing a plugin field.
Definition: fields.h:59
BlamTagField_Bitfield(BlamTag *_tag, BlamTagFieldType _type)
Constructs a new bitfield tag field.
Definition: BlamTagField_Bitfield.cpp:15
Class representing a Tag.
Definition: tags.h:210
BlamPluginField(BlamPlugin *_plugin, BlamTagFieldType _type)
Constructs a new plugin field.
Definition: BlamPluginField.cpp:22
BlamTagField_Block(BlamTag *_tag)
Constructs a new block tag field.
Definition: BlamTagField_Block.cpp:3
std::string GenerateXMLString()
Generates a string with the field ID and value, ready to be written to an XML file.
Definition: BlamTagField_Block.cpp:128
@ Int64
Indicates that the field is a 32-bit integer.
std::string GenerateXMLString() override
Generates a string representing this plugin field.
Definition: BlamPluginField_Block.cpp:81
#define GUERILLA_LIB_API
Definition: block.h:11
std::string current_option
The ID of the currently selected option.
Definition: enum.h:56
BlamPluginField_Bitfield(BlamPluginField *base_field)
Constructs a new bitfield plugin field from an existing generic plugin field.
Definition: BlamPluginField_Bitfield.cpp:3
@ Tagref
Indicates that the field is a tag reference.
bool visible
Whether or not the field is visible.
Definition: fields.h:68
bool HasPluginField()
Checks whether the field has plugin data available.
Definition: BlamTagField.cpp:34
int data_size
Definition: dataref.h:15
std::vector< BlamTagField * > fields
The list of fields within the entry.
Definition: block.h:21
@ Vector3
Indicates that the field is a vector3.
Class representing a tag enum field.
Definition: enum.h:53
~BlamTagBlockEntry()
Definition: BlamTagBlockEntry.cpp:3
float value
The value of the field.
Definition: float32.h:21
Class representing a Plugin.
Definition: tags.h:79
std::string field_id
The ID of the field.
Definition: fields.h:71
Class representing an integer tag field.
Definition: int.h:16
BlamTagBlockEntry * CreateNewEntry()
Definition: BlamTagField_Block.cpp:99
Class representing a vector tag field.
Definition: vector.h:18
Clas representing a bitfield plugin field.
Definition: bitfield.h:39
@ Bitfield8
Indicates that the field is a Bitfield8.
std::vector< BlamPluginField * > fields
The list of fields within the tag block.
Definition: block.h:45
int c_entry_count
The entry count. Used in tag decompilation.
Definition: block.h:47
bool DuplicateEntry(int index)
Definition: BlamTagField_Block.cpp:42
void UpdateOffsetData(int new_offset) override
Updates any offsets or lengths for the given field.
Definition: BlamPluginField_Block.cpp:64
void * data_address
Definition: dataref.h:14
BlamPluginField * plugin_field
The plugin data associated with this field, if any.
Definition: fields.h:174
BlamTagField(BlamTag *_tag, BlamTagFieldType _type)
Constructs a new tag field.
Definition: BlamTagField.cpp:3
#define GUERILLA_SET_BITFIELD_BIT(index)
Definition: BlamTagField_Bitfield.cpp:6
std::string description
An optional description of the field.
Definition: fields.h:70
@ Unspecified
Indicates that the field's type is not specified. Fields with this type should be considered invalid.
@ StringId
Indicates that the field is a String ID.
int c_entry_offset
The offset of the entry data. Used in tag decompilation.
Definition: block.h:48
std::vector< BlamBitfieldBitInfo > bits
The list of bits within this bitfield.
Definition: bitfield.h:42
BlamPlugin * GetPlugin()
Retrieves the plugin this field is associated with.
Definition: BlamPluginField.cpp:49
@ Bitfield32
Indicates that the field is a Bitfield32.
int offset
The offset of the field data.
Definition: fields.h:66
std::string name
The name of the entry.
Definition: block.h:20
@ Vector2
Indicates that the field is a vector2.
Data structure containing data for a bitfield bit.
Definition: bitfield.h:28
std::string GenerateXMLString()
Generates a string with the field ID and value, ready to be written to an XML file.
Definition: BlamTagField_Bitfield.cpp:20
std::vector< char > GetValueAsBytes()
Retrieves the field value as a list of bytes.
Definition: BlamTagField_Block.cpp:185
int64_t value
The value of the field, represented as a 32-bit integer.
Definition: int.h:21
int length
The length of the field data.
Definition: fields.h:67
std::vector< char > GetValueAsBytes()
Retrieves the field value as a list of bytes.
Definition: BlamTagField_Bitfield.cpp:54
bool AddEntry(int offset=-1)
Definition: BlamTagField_Block.cpp:8
virtual std::vector< char > GetValueAsBytes()
Retrieves the field value as a list of bytes.
Definition: BlamTagField.cpp:14
@ Enum32
Indicates that the field is an Enum32.
std::string value
The value of the field.
Definition: ascii.h:23
BlamPluginField_Block(BlamPluginField *base_field)
Constructs a new block plugin field from an existing generic plugin field.
Definition: BlamPluginField_Block.cpp:7
Class representing a color tag field.
Definition: color.h:17
Class representing an ascii tag field.
Definition: ascii.h:18