Elaztek Developer Hub
Blamite Game Engine - Guerilla (Library)  00345.11.30.21.1814.blamite
The tag editor for the Blamite Game Engine.
block.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 
18 {
19  std::string name;
20  std::vector<BlamTagField*> fields;
21 };
22 
33 {
34 public:
35  int entry_size = 0;
36  std::vector<BlamPluginField*> fields;
37 
38  int c_entry_count = 0;
39  int c_entry_offset = 0;
40 
47 
49 };
50 
61 {
62 public:
63  std::vector<BlamTagBlockEntry*> entries;
64 
71 
72  std::string GenerateXMLString();
73  std::vector<char> GetValueAsBytes();
74 
80  std::vector<char> GetEntryDataAsBytes();
81 };
BlamTagField
Class representing a tag field.
Definition: fields.h:219
BlamTagField_Block::entries
std::vector< BlamTagBlockEntry * > entries
The list of entries within this block.
Definition: block.h:63
BlamPluginField_Block
Class representing a block plugin field.
Definition: block.h:32
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_Block
Class representing a block tag field.
Definition: block.h:60
BlamPluginField
Class representing a plugin field.
Definition: fields.h:134
BlamTag
Class representing a Tag.
Definition: tags.h:125
BlamTagBlockEntry
Data structure representing a tag block entry.
Definition: block.h:17
GUERILLA_LIB_API
#define GUERILLA_LIB_API
Definition: block.h:11
BlamTagBlockEntry::name
std::string name
The name of the entry.
Definition: block.h:19
BlamTagBlockEntry::fields
std::vector< BlamTagField * > fields
The list of fields within the entry.
Definition: block.h:20
BlamPluginField_Block::fields
std::vector< BlamPluginField * > fields
The list of fields within the tag block.
Definition: block.h:36
BlamTagField::GetValueAsBytes
virtual std::vector< char > GetValueAsBytes()
Retrieves the field value as a list of bytes.
Definition: BlamTagField.cpp:14