Elaztek Developer Hub
Blamite Game Engine - Guerilla (Library)  00385.05.12.23.0209.blamite
The tag editor for the Blamite Game Engine.
float32.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../fields.h"
4 
5 #ifdef GUERILLA_LIB_EXPORTS
6 #define GUERILLA_LIB_API __declspec(dllexport)
7 #else
8 #define GUERILLA_LIB_API __declspec(dllimport)
9 #endif
10 
17 {
18 private:
19 
20 public:
21  float value = 0.0f;
22 
29 
30  std::string GenerateXMLString();
31  std::vector<char> GetValueAsBytes();
32 };
BlamTagField
Class representing a tag field.
Definition: fields.h:164
BlamTagFieldType::Real
@ Real
Indicates that the field is a Float32.
GUERILLA_LIB_API
#define GUERILLA_LIB_API
Definition: float32.h:8
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_Float32
Class representing a float32 tag field.
Definition: float32.h:16
BlamTagField_Float32::BlamTagField_Float32
BlamTagField_Float32(BlamTag *_tag)
Constructs a new float32 tag field.
Definition: BlamTagField_Float32.cpp:5
BlamTagField_Float32::GenerateXMLString
std::string GenerateXMLString()
Generates a string with the field ID and value, ready to be written to an XML file.
Definition: BlamTagField_Float32.cpp:10
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_Float32::GetValueAsBytes
std::vector< char > GetValueAsBytes()
Retrieves the field value as a list of bytes.
Definition: BlamTagField_Float32.cpp:15
BlamTagField_Float32::value
float value
The value of the field.
Definition: float32.h:21
float32.h
BlamTagField::GetValueAsBytes
virtual std::vector< char > GetValueAsBytes()
Retrieves the field value as a list of bytes.
Definition: BlamTagField.cpp:14