Elaztek Developer Hub
Blamite Game Engine - Guerilla (Library)  00385.05.12.23.0209.blamite
The tag editor for the Blamite Game Engine.
dataref.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 
12 {
13 public:
14  void* data_address = nullptr;
15  int data_size = 0;
16 
23 
24  std::string GenerateXMLString();
25  std::vector<char> GetValueAsBytes();
26 
32  std::vector<char> GetReferencedDataAsBytes();
33 };
BlamTagField
Class representing a tag field.
Definition: fields.h:164
GUERILLA_LIB_API
#define GUERILLA_LIB_API
Definition: dataref.h:8
BlamTagField_Dataref::BlamTagField_Dataref
BlamTagField_Dataref(BlamTag *_tag)
Constructs a new dataref tag field.
Definition: BlamTagField_Dataref.cpp:8
BlamTagField_Dataref::GenerateXMLString
std::string GenerateXMLString()
Generates a string with the field ID and value, ready to be written to an XML file.
Definition: BlamTagField_Dataref.cpp:13
BlamTagField_Dataref::GetReferencedDataAsBytes
std::vector< char > GetReferencedDataAsBytes()
Compiles the referenced data into a list of bytes.
Definition: BlamTagField_Dataref.cpp:46
BlamTagField::field_id
std::string field_id
The ID of this field.
Definition: fields.h:175
BlamTagFieldType::Dataref
@ Dataref
Indicates that the field is a data reference.
BlamTagFieldType
BlamTagFieldType
Enumerator containing all possible tag field types.
Definition: fields.h:23
dataref.h
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
BlamTagField_Dataref
Definition: dataref.h:11
BlamTag
Class representing a Tag.
Definition: tags.h:210
BlamTagField_Dataref::data_size
int data_size
Definition: dataref.h:15
BlamTagField_Dataref::data_address
void * data_address
Definition: dataref.h:14
BlamTagField::GetValueAsBytes
virtual std::vector< char > GetValueAsBytes()
Retrieves the field value as a list of bytes.
Definition: BlamTagField.cpp:14
BlamTagField_Dataref::GetValueAsBytes
std::vector< char > GetValueAsBytes()
Retrieves the field value as a list of bytes.
Definition: BlamTagField_Dataref.cpp:28