Elaztek Developer Hub
Blamite Game Engine - Guerilla (Library)  00384.05.11.23.0458.blamite
The tag editor for the Blamite Game Engine.
color.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../fields.h"
4 #include <Strings/components/resources/color/BlamColor.h>
5 
6 #ifdef GUERILLA_LIB_EXPORTS
7 #define GUERILLA_LIB_API __declspec(dllexport)
8 #else
9 #define GUERILLA_LIB_API __declspec(dllimport)
10 #endif
11 
18 {
19 private:
20 
21 public:
22  BlamColor value = { 255, 255, 255, 255 };
23 
31 
32  std::string GenerateXMLString();
33  std::vector<char> GetValueAsBytes();
34 };
BlamTagField
Class representing a tag field.
Definition: fields.h:164
BlamTagField_Color::GetValueAsBytes
std::vector< char > GetValueAsBytes()
Retrieves the field value as a list of bytes.
Definition: BlamTagField_Color.cpp:19
tags.h
BlamTagField::field_id
std::string field_id
The ID of this field.
Definition: fields.h:175
BlamTagFieldType
BlamTagFieldType
Enumerator containing all possible tag field types.
Definition: fields.h:23
BlamTagField_Color::value
BlamColor value
The value of the field, represented as a color.
Definition: color.h:22
BlamTagFieldType::Color
@ Color
Indicates that the field is a color.
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
BlamTag
Class representing a Tag.
Definition: tags.h:210
BlamTagField_Color::GenerateXMLString
std::string GenerateXMLString()
Generates a string with the field ID and value, ready to be written to an XML file.
Definition: BlamTagField_Color.cpp:13
GUERILLA_LIB_API
#define GUERILLA_LIB_API
Definition: color.h:9
color.h
BlamTagField::GetValueAsBytes
virtual std::vector< char > GetValueAsBytes()
Retrieves the field value as a list of bytes.
Definition: BlamTagField.cpp:14
BlamTagField_Color::BlamTagField_Color
BlamTagField_Color(BlamTag *_tag)
Constructs a new integer tag field.
Definition: BlamTagField_Color.cpp:8
BlamTagField_Color
Class representing a color tag field.
Definition: color.h:17