Elaztek Developer Hub
Blamite Game Engine - Guerilla (Library)  00386.06.16.23.0646.blamite
The tag editor for the Blamite Game Engine.
int.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../fields.h"
4 
5 #ifdef GUERILLA_LIB_EXPORTS
6 #define GUERILLA_LIB_API __declspec(dllexport)
7 #else
8 #define GUERILLA_LIB_API __declspec(dllimport)
9 #endif
10 
17 {
18 public:
20 
21  std::string GenerateCppStructString(std::string line_prefix = "") override;
22  std::string GenerateCppClassString(std::string line_prefix = "") override;
23  BlamTagField* GenerateTagField(BlamTag* tag, void* address) override;
24  BlamTagField* GenerateTagField(BlamTag* tag) override;
25 };
26 
33 {
34 private:
35 
36 public:
37  int64_t value = 0;
38 
46 
47  std::string GenerateXMLString();
48  std::vector<char> GetValueAsBytes();
49 };
BlamTagField
Class representing a tag field.
Definition: fields.h:202
BlamTagFieldType::Int16
@ Int16
Indicates that the field is a 16-bit integer.
BlamTagField::GetType
BlamTagFieldType GetType()
Retrieves the type of this field.
Definition: BlamTagField.cpp:19
BlamPluginField::GenerateTagField
virtual BlamTagField * GenerateTagField(BlamTag *tag)
Generates a new tag field from this plugin field.
Definition: BlamPluginField.cpp:40
BlamTagField_Int::BlamTagField_Int
BlamTagField_Int(BlamTag *_tag, BlamTagFieldType _type)
Constructs a new integer tag field.
Definition: BlamTagField_Int.cpp:8
BlamTagFieldType::Int32
@ Int32
Indicates that the field is a 32-bit integer.
tags.h
GUERILLA_LIB_API
#define GUERILLA_LIB_API
Definition: int.h:8
BlamTagField::GetTag
BlamTag * GetTag()
Retrieves the tag associated with this field.
Definition: BlamTagField.cpp:24
BlamPluginField_Int::GenerateTagField
BlamTagField * GenerateTagField(BlamTag *tag, void *address) override
Generates a new tag field from this plugin field.
Definition: BlamPluginField_Int.cpp:52
BlamTagField_Int::GenerateXMLString
std::string GenerateXMLString()
Generates a string with the field ID and value, ready to be written to an XML file.
Definition: BlamTagField_Int.cpp:13
BlamTagField::field_id
std::string field_id
The ID of this field.
Definition: fields.h:213
BlamPluginField::GetType
BlamTagFieldType GetType()
Retrieves the type of this field.
Definition: BlamPluginField.cpp:30
BlamTagFieldType
BlamTagFieldType
Enumerator containing all possible tag field types.
Definition: fields.h:24
BlamTagFieldType::Int8
@ Int8
Indicates that the field is an 8-bit integer.
BlamPluginField_Int
Class representing an integer plugin field.
Definition: int.h:16
BlamTagField::GenerateXMLString
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
BlamPluginField_Int::BlamPluginField_Int
BlamPluginField_Int(BlamPluginField *base_field)
Definition: BlamPluginField_Int.cpp:3
BlamPluginField::display_name
std::string display_name
The display name of the field.
Definition: fields.h:70
BlamPluginField
Class representing a plugin field.
Definition: fields.h:60
BlamTag
Class representing a Tag.
Definition: tags.h:232
BlamPluginField_Int::GenerateCppClassString
std::string GenerateCppClassString(std::string line_prefix="") override
Generates a string containing C++ code representing this plugin field.
Definition: BlamPluginField_Int.cpp:30
BlamTagFieldType::Int64
@ Int64
Indicates that the field is a 32-bit integer.
BlamPluginField::GenerateCppStructString
virtual std::string GenerateCppStructString(std::string line_prefix="")
Generates a string containing C++ code representing this plugin field.
Definition: BlamPluginField.cpp:74
BlamPluginField::field_id
std::string field_id
The ID of the field.
Definition: fields.h:72
BlamTagField_Int
Class representing an integer tag field.
Definition: int.h:32
BlamPluginField_Int::GenerateCppStructString
std::string GenerateCppStructString(std::string line_prefix="") override
Generates a string containing C++ code representing this plugin field.
Definition: BlamPluginField_Int.cpp:8
BlamTagField::plugin_field
BlamPluginField * plugin_field
The plugin data associated with this field, if any.
Definition: fields.h:212
BlamPluginField::description
std::string description
An optional description of the field.
Definition: fields.h:71
BlamTagField_Int::value
int64_t value
The value of the field, represented as a 32-bit integer.
Definition: int.h:37
BlamPluginField::GenerateCppClassString
virtual std::string GenerateCppClassString(std::string line_prefix="")
Generates a string containing C++ code representing this plugin field.
Definition: BlamPluginField.cpp:79
BlamPluginField::length
int length
The length of the field data.
Definition: fields.h:68
BlamTagField_Int::GetValueAsBytes
std::vector< char > GetValueAsBytes()
Retrieves the field value as a list of bytes.
Definition: BlamTagField_Int.cpp:42
int.h
BlamTagField::GetValueAsBytes
virtual std::vector< char > GetValueAsBytes()
Retrieves the field value as a list of bytes.
Definition: BlamTagField.cpp:14