Elaztek Developer Hub
Blamite Game Engine - blam!  00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
fieldref.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 #ifdef BLAM_EXPORTS
6 #define BLAM_EXT_API __declspec(dllexport)
7 #else
8 #define BLAM_EXT_API __declspec(dllimport)
9 #endif
10 
18 {
19 public:
20  FieldReferenceField(std::string _display_name, std::string _extra_info);
21 
22  void ShowImPropertyControl();
23 
24  std::string GetFieldXMLString(int offset);
25 };
BooleanField
Class representing a boolean tag field.
Definition: boolean.h:19
RealField
Class representing a real tag field.
Definition: real.h:16
BlamTagFieldType::Bitfield16
@ Bitfield16
Indicates that the field is a Bitfield16.
BlamTagFieldType::Bitfield8
@ Bitfield8
Indicates that the field is a Bitfield8.
bitfield.h
UINT32_MAX
#define UINT32_MAX
Definition: stdint.h:70
BlamTagClassField.h
AsciiField::ShowImPropertyControl
void ShowImPropertyControl()
Shows a set of ImGUI controls representing the tag field.
Definition: ascii.cpp:15
boolean.h
color.h
BlamTagFieldType::Comment
@ Comment
Indicates that the field is a comment. These do not store any tag data.
AsciiField
Class representing an ascii tag field.
Definition: ascii.h:18
imgui.h
BlamTagClassField::display_name
std::string display_name
The display name of the tag field.
Definition: BlamTagClassField.h:31
ImVec4
Definition: imgui.h:192
BlamTagClassField::GetFieldXMLString
virtual std::string GetFieldXMLString(int offset)
Generates a string representing an XML node associated with this tag field, used for generating plugi...
Definition: BlamTagClassField.cpp:32
BlamTagFieldType::TagReference
@ TagReference
Indicates that the field is a tag reference.
BlamTagFieldType::Real
@ Real
Indicates that the field is a Float32.
BlamTagFieldType::Bitfield32
@ Bitfield32
Indicates that the field is a Bitfield32.
FieldReferenceField::FieldReferenceField
FieldReferenceField(std::string _display_name, std::string _extra_info)
Definition: fieldref.cpp:18
BlamTagFieldType::Unspecified
@ Unspecified
Indicates that the field's type is not specified. Fields with this type should be considered invalid.
BitfieldField::ShowImPropertyControl
void ShowImPropertyControl()
Shows a set of ImGUI controls representing the tag field.
Definition: bitfield.cpp:37
BlamTagFieldType::Int16
@ Int16
Indicates that the field is a 16-bit integer.
field_reference::referenced_field_type
BlamTagFieldType referenced_field_type
Definition: tags.h:370
BLAM_EXT_API
#define BLAM_EXT_API
Definition: fieldref.h:8
BlamTagClassField
Base class representing a plugin field.
Definition: BlamTagClassField.h:28
BlamTagFieldType::Int8
@ Int8
Indicates that the field is an 8-bit integer.
BlamTagFieldType
BlamTagFieldType
Enumerator listing all possible plugin field types.
Definition: tags.h:30
RealField::ShowImPropertyControl
void ShowImPropertyControl()
Shows a set of ImGUI controls representing the tag field.
Definition: real.cpp:19
BlamTagFieldType::Int64
@ Int64
Indicates that the field is a 32-bit integer.
VectorField
Class representing a vector tag field.
Definition: vector.h:17
VectorField::ShowImPropertyControl
void ShowImPropertyControl()
Shows a set of ImGUI controls representing the tag field.
Definition: vector.cpp:42
BlamTagFieldType::Ascii
@ Ascii
Indicates that the field is a string of text.
IntField::ShowImPropertyControl
void ShowImPropertyControl()
Shows a set of ImGUI controls representing the tag field.
Definition: int.cpp:49
widgets.h
BlamTagFieldType::Int32
@ Int32
Indicates that the field is a 32-bit integer.
UINT8_MAX
#define UINT8_MAX
Definition: stdint.h:68
field_reference
Structure representing a field reference.
Definition: tags.h:367
BlamTagClassField::read_address
void * read_address
The address of the data the field is currently representing.
Definition: BlamTagClassField.h:36
BlamTagFieldType::Color
@ Color
Indicates that the field is a color.
fieldref.h
FieldReferenceField::ShowImPropertyControl
void ShowImPropertyControl()
Shows a set of ImGUI controls representing the tag field.
Definition: fieldref.cpp:24
BlamTagFieldType::Boolean
@ Boolean
Indicates that the field is a boolean.
EnumField::ShowImPropertyControl
void ShowImPropertyControl()
Shows a set of ImGUI controls representing the tag field.
Definition: enum.cpp:38
BooleanField::ShowImPropertyControl
void ShowImPropertyControl()
Shows a set of ImGUI controls representing the tag field.
Definition: boolean.cpp:14
BlamTagClassField::SetMemoryLocation
virtual void SetMemoryLocation(void *new_address)
Sets the address of the data that the plugin field should display.
Definition: BlamTagClassField.cpp:27
BlamTagFieldType::Enum32
@ Enum32
Indicates that the field is an Enum32.
BitfieldField
Base class for Bitfield plugin fields.
Definition: bitfield.h:16
BlamTagFieldType::Vector2
@ Vector2
Indicates that the field is a vector2.
BlamTagFieldType::Enum8
@ Enum8
Indicates that the field is an Enum8.
BlamTagClassField::read_length
int read_length
How many bytes to read from the start of the address.
Definition: BlamTagClassField.h:37
vector.h
BlamTagFieldType::Block
@ Block
Indicates that the field is a tag block.
ColorField::ShowImPropertyControl
void ShowImPropertyControl()
Shows a set of ImGUI controls representing the tag field.
Definition: color.cpp:15
IntField
Class representing an int32 tag field.
Definition: int.h:16
BlamTagFieldType::Vector4
@ Vector4
Indicates that the field is a vector4.
ColorField
Class representing a color tag field.
Definition: color.h:19
real.h
FieldReferenceField::GetFieldXMLString
std::string GetFieldXMLString(int offset)
Generates a string representing an XML node associated with this tag field, used for generating plugi...
Definition: fieldref.cpp:176
tags.h
BlamTagFieldType::Vector3
@ Vector3
Indicates that the field is a vector3.
FieldReferenceField
Class representing a fieldref tag field.
Definition: fieldref.h:17
BlamTagFieldType::Enum16
@ Enum16
Indicates that the field is an Enum16.
field_reference::field_address
void * field_address
Definition: tags.h:371
BlamTagClassField::ShowImPropertyControl
virtual void ShowImPropertyControl()
Shows a set of ImGUI controls representing the tag field.
Definition: BlamTagClassField.cpp:22
ImGui::TextColored
IMGUI_API void TextColored(const ImVec4 &col, const char *fmt,...) IM_FMTARGS(2)
Definition: imgui_widgets.cpp:257
ascii.h
BlamTagClassField::extra_info
std::string extra_info
Additional information to show alongside the field.
Definition: BlamTagClassField.h:32
BlamTagFieldType::DataReference
@ DataReference
Indicates that the field is a data reference.
EnumField
Class representing an enum tag field.
Definition: enum.h:19
int.h
BlamTagFieldType::FieldReference
@ FieldReference
Indicates that the field is a fieldref.
BlamTagClassField::visible
bool visible
Whether or not this field should be marked as visible within the editor.
Definition: BlamTagClassField.h:34
enum.h