Elaztek Developer Hub
Blamite Game Engine - blam!  00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
dataref.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 
6 
7 #ifdef BLAM_EXPORTS
8 #define BLAM_EXT_API __declspec(dllexport)
9 #else
10 #define BLAM_EXT_API __declspec(dllimport)
11 #endif
12 
20 {
21 private:
22  bool view_raw = true;
23 
24 public:
25  DataReferenceField(std::string _display_name, std::string _extra_info);
26 
27  std::string GetFieldXMLString(int offset);
28  void ShowImPropertyControl();
29 };
BlamTagClassField.h
ImGui::Checkbox
IMGUI_API bool Checkbox(const char *label, bool *v)
Definition: imgui_widgets.cpp:974
imgui.h
BlamTagClassField::display_name
std::string display_name
The display name of the tag field.
Definition: BlamTagClassField.h:31
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.
ImGui::InputText
IMGUI_API bool InputText(const char *label, char *buf, size_t buf_size, ImGuiInputTextFlags flags=0, ImGuiInputTextCallback callback=NULL, void *user_data=NULL)
Definition: imgui_widgets.cpp:3068
DataReferenceField
Class representing a data reference, or dataref for short.
Definition: dataref.h:19
ImGui::SameLine
IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f)
Definition: imgui.cpp:7147
BlamTagClassField
Base class representing a plugin field.
Definition: BlamTagClassField.h:28
BlamTagFieldType
BlamTagFieldType
Enumerator listing all possible plugin field types.
Definition: tags.h:30
DataReferenceField::ShowImPropertyControl
void ShowImPropertyControl()
Shows a set of ImGUI controls representing the tag field.
Definition: dataref.cpp:31
BLAM_EXT_API
#define BLAM_EXT_API
Definition: dataref.h:10
dataref.h
DataReferenceField::DataReferenceField
DataReferenceField(std::string _display_name, std::string _extra_info)
Definition: dataref.cpp:9
BlamTagClassField::read_address
void * read_address
The address of the data the field is currently representing.
Definition: BlamTagClassField.h:36
data_reference::value_hint
char value_hint[4]
The value hint providing context on what type of data is stored. Used in Editing Kit.
Definition: tags.h:267
ImGui::InputTextMultiline
IMGUI_API bool InputTextMultiline(const char *label, char *buf, size_t buf_size, const ImVec2 &size=ImVec2(0, 0), ImGuiInputTextFlags flags=0, ImGuiInputTextCallback callback=NULL, void *user_data=NULL)
Definition: imgui_widgets.cpp:3074
data_reference::data_address
void * data_address
The address of the referenced data.
Definition: tags.h:265
data_reference
Structure representing a data reference.
Definition: tags.h:261
BlamTagClassField::read_length
int read_length
How many bytes to read from the start of the address.
Definition: BlamTagClassField.h:37
data_reference::identifier
char identifier[4]
Dataref identifier. Will always be drfd.
Definition: tags.h:263
data_reference::data_size
int data_size
The size of the referenced data.
Definition: tags.h:266
tagclass.h
tags.h
BlamTagClassField::ShowImPropertyControl
virtual void ShowImPropertyControl()
Shows a set of ImGUI controls representing the tag field.
Definition: BlamTagClassField.cpp:22
BlamTagClassField::extra_info
std::string extra_info
Additional information to show alongside the field.
Definition: BlamTagClassField.h:32
DataReferenceField::GetFieldXMLString
std::string GetFieldXMLString(int offset)
Generates a string representing an XML node associated with this tag field, used for generating plugi...
Definition: dataref.cpp:15
ImGui::InputInt
IMGUI_API bool InputInt(const char *label, int *v, int step=1, int step_fast=100, ImGuiInputTextFlags flags=0)
Definition: imgui_widgets.cpp:3031
BlamTagClassField::visible
bool visible
Whether or not this field should be marked as visible within the editor.
Definition: BlamTagClassField.h:34