Elaztek Developer Hub
Blamite Game Engine - Guerilla (Library)  00352.03.28.22.1329.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 public:
20  std::string name;
21  std::vector<BlamTagField*> fields;
22 
24 
25  BlamTagField* GetField(std::string field_id);
26 
27  BlamTagField* GetField(std::string field_id, BlamTagFieldType field_type);
28 };
29 
40 {
41 public:
42  int entry_size = 0;
43  std::vector<BlamPluginField*> fields;
44 
45  int c_entry_count = 0;
46  int c_entry_offset = 0;
47 
54 
56 };
57 
68 {
69 public:
70  std::vector<BlamTagBlockEntry*> entries;
71 
78 
79  std::string GenerateXMLString();
80  std::vector<char> GetValueAsBytes();
81 
87  std::vector<char> GetEntryDataAsBytes();
88 };
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:70
BlamTagBlockEntry
Data structure representing a tag block entry.
Definition: block.h:17
BlamTagFieldType
BlamTagFieldType
Enumerator containing all possible tag field types.
Definition: fields.h:103
BlamPluginField_Block
Class representing a block plugin field.
Definition: block.h:39
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:67
BlamPluginField
Class representing a plugin field.
Definition: fields.h:134
BlamTag
Class representing a Tag.
Definition: tags.h:126
GUERILLA_LIB_API
#define GUERILLA_LIB_API
Definition: block.h:11
BlamTagBlockEntry::fields
std::vector< BlamTagField * > fields
The list of fields within the entry.
Definition: block.h:21
BlamPluginField_Block::fields
std::vector< BlamPluginField * > fields
The list of fields within the tag block.
Definition: block.h:43
BlamTagBlockEntry::name
std::string name
The name of the entry.
Definition: block.h:20
BlamTagField::GetValueAsBytes
virtual std::vector< char > GetValueAsBytes()
Retrieves the field value as a list of bytes.
Definition: BlamTagField.cpp:14