Elaztek Developer Hub
Blamite Game Engine - Guerilla (Library)  00378.04.17.23.1319.blamite
The tag editor for the Blamite Game Engine.
tagref.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 #include <string>
5 
6 #include "../fields.h"
7 
8 #ifdef GUERILLA_LIB_EXPORTS
9 #define GUERILLA_LIB_API __declspec(dllexport)
10 #else
11 #define GUERILLA_LIB_API __declspec(dllimport)
12 #endif
13 
15 {
16 public:
17  std::vector<std::string> allowed_classes;
18 
20 };
21 
23 {
24 public:
25  int data_size = 0;
26  void* data_address = nullptr;
27 
28  std::string referenced_tag_path = "";
29  std::string referenced_tag_class = "";
30 
32 
33  std::string GenerateXMLString();
34  std::vector<char> GetValueAsBytes();
35 
36  std::vector<char> GetReferencedTagPathAsBytes();
37 };
BlamTagField
Class representing a tag field.
Definition: fields.h:226
BlamPluginField_Tagref
Definition: tagref.h:14
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_Tagref
Definition: tagref.h:22
BlamPluginField
Class representing a plugin field.
Definition: fields.h:139
BlamTag
Class representing a Tag.
Definition: tags.h:152
BlamPluginField_Tagref::allowed_classes
std::vector< std::string > allowed_classes
Definition: tagref.h:17
GUERILLA_LIB_API
#define GUERILLA_LIB_API
Definition: tagref.h:11
BlamTagField::GetValueAsBytes
virtual std::vector< char > GetValueAsBytes()
Retrieves the field value as a list of bytes.
Definition: BlamTagField.cpp:14