Elaztek Developer Hub
Blamite Game Engine - Guerilla (Library)  00384.05.11.23.0458.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 private:
19 
20 public:
21  int64_t value = 0;
22 
30 
31  std::string GenerateXMLString();
32  std::vector<char> GetValueAsBytes();
33 };
BlamTagField
Class representing a tag field.
Definition: fields.h:164
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
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
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:175
BlamTagFieldType
BlamTagFieldType
Enumerator containing all possible tag field types.
Definition: fields.h:23
BlamTagFieldType::Int8
@ Int8
Indicates that the field is an 8-bit integer.
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
BlamTag
Class representing a Tag.
Definition: tags.h:210
BlamTagFieldType::Int64
@ Int64
Indicates that the field is a 32-bit integer.
BlamTagField_Int
Class representing an integer tag field.
Definition: int.h:16
BlamTagField_Int::value
int64_t value
The value of the field, represented as a 32-bit integer.
Definition: int.h:21
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