Elaztek Developer Hub
Blamite Game Engine - Guerilla (Library)  00355.06.11.22.0220.blamite
The tag editor for the Blamite Game Engine.
bitfield.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 
5 #include "../fields.h"
6 
7 #ifdef GUERILLA_LIB_EXPORTS
8 #define GUERILLA_LIB_API __declspec(dllexport)
9 #else
10 #define GUERILLA_LIB_API __declspec(dllimport)
11 #endif
12 
19 {
20  std::string id;
21  std::string name;
22  int index;
23 };
24 
29 {
30  std::string id;
31  bool value;
32 };
33 
40 {
41 public:
42  std::vector<BlamBitfieldBitInfo> bits;
43 
50 };
51 
58 {
59 public:
60  std::vector<BlamBitfieldBitData> bits;
61 
69 
70  std::string GenerateXMLString();
71  std::vector<char> GetValueAsBytes();
72 };
BlamTagField
Class representing a tag field.
Definition: fields.h:219
GUERILLA_LIB_API
#define GUERILLA_LIB_API
Definition: bitfield.h:10
BlamTagField_Bitfield::bits
std::vector< BlamBitfieldBitData > bits
The list of bits within this bitfield.
Definition: bitfield.h:60
BlamTagFieldType
BlamTagFieldType
Enumerator containing all possible tag field types.
Definition: fields.h:103
BlamBitfieldBitData::id
std::string id
The ID of the bit.
Definition: bitfield.h:30
BlamBitfieldBitInfo::index
int index
The bit's index.
Definition: bitfield.h:22
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
BlamBitfieldBitInfo::id
std::string id
The ID of the bit.
Definition: bitfield.h:20
BlamTagField_Bitfield
Clas representing a bitfield tag field.
Definition: bitfield.h:57
BlamPluginField
Class representing a plugin field.
Definition: fields.h:134
BlamTag
Class representing a Tag.
Definition: tags.h:126
BlamBitfieldBitData::value
bool value
The bit's value.
Definition: bitfield.h:31
BlamBitfieldBitInfo::name
std::string name
The display name of the bit.
Definition: bitfield.h:21
BlamPluginField_Bitfield
Clas representing a bitfield plugin field.
Definition: bitfield.h:39
BlamPluginField_Bitfield::bits
std::vector< BlamBitfieldBitInfo > bits
The list of bits within this bitfield.
Definition: bitfield.h:42
BlamBitfieldBitData
Data structure containing data for a bitfield bit.
Definition: bitfield.h:28
BlamTagField::GetValueAsBytes
virtual std::vector< char > GetValueAsBytes()
Retrieves the field value as a list of bytes.
Definition: BlamTagField.cpp:14
BlamBitfieldBitInfo
Data structure containing extra data for a bitfield bit.
Definition: bitfield.h:18