Elaztek Developer Hub
Blamite Game Engine - blam!  00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
int.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 
17 {
18 public:
19  IntField(BlamTagFieldType _type, std::string _display_name, std::string _extra_info);
20 
21  IntField(BlamTagFieldType _type, std::string _display_name, std::string _extra_info, std::string _input_hint);
22 
23  void ShowImPropertyControl();
24 
25  std::string GetFieldXMLString(int offset);
26 };
27 
34 {
35 public:
36  Int64Field(std::string _display_name, std::string _extra_info);
37 
38  Int64Field(std::string _display_name, std::string _extra_info, std::string _input_hint);
39 };
40 
47 {
48 public:
49  Int32Field(std::string _display_name, std::string _extra_info);
50 
51  Int32Field(std::string _display_name, std::string _extra_info, std::string _input_hint);
52 };
53 
60 {
61 public:
62  Int16Field(std::string _display_name, std::string _extra_info);
63 
64  Int16Field(std::string _display_name, std::string _extra_info, std::string _input_hint);
65 };
66 
73 {
74 public:
75  Int8Field(std::string _display_name, std::string _extra_info);
76 
77  Int8Field(std::string _display_name, std::string _extra_info, std::string _input_hint);
78 };
Int16Field
Class representing an int16 tag field.
Definition: int.h:59
Int32Field::Int32Field
Int32Field(std::string _display_name, std::string _extra_info)
Definition: int.cpp:115
Blam::DebugUI::Widgets::ShowHelpMarker
BLAM void ShowHelpMarker(const char *desc)
Shows a help indicator.
Definition: widgets.cpp:7
BLAM_EXT_API
#define BLAM_EXT_API
Definition: int.h:8
BlamTagClassField.h
Int64Field::Int64Field
Int64Field(std::string _display_name, std::string _extra_info)
Definition: int.cpp:104
imgui.h
ImGuiDataType_S32
@ ImGuiDataType_S32
Definition: imgui.h:914
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
ImGuiDataType_S8
@ ImGuiDataType_S8
Definition: imgui.h:910
BlamTagFieldType::Int16
@ Int16
Indicates that the field is a 16-bit integer.
Int8Field::Int8Field
Int8Field(std::string _display_name, std::string _extra_info)
Definition: int.cpp:137
ImGui::DragScalar
IMGUI_API bool DragScalar(const char *label, ImGuiDataType data_type, void *v, float v_speed, const void *v_min=NULL, const void *v_max=NULL, const char *format=NULL, float power=1.0f)
Definition: imgui_widgets.cpp:2055
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
ImGuiDataType_S64
@ ImGuiDataType_S64
Definition: imgui.h:916
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
int8_t
signed char int8_t
Definition: stdint.h:11
BlamTagFieldType::Int64
@ Int64
Indicates that the field is a 32-bit integer.
IntField::GetFieldXMLString
std::string GetFieldXMLString(int offset)
Generates a string representing an XML node associated with this tag field, used for generating plugi...
Definition: int.cpp:75
BlamTagClassField::input_hint
std::string input_hint
A label specifying possible valid input. Not always shown.
Definition: BlamTagClassField.h:33
int32_t
int int32_t
Definition: stdint.h:13
ImGuiDataType_S16
@ ImGuiDataType_S16
Definition: imgui.h:912
Int8Field
Class representing an int8 tag field.
Definition: int.h:72
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.
BlamTagClassField::read_address
void * read_address
The address of the data the field is currently representing.
Definition: BlamTagClassField.h:36
int64_t
long long int64_t
Definition: stdint.h:14
Int64Field
Class representing an int64 tag field.
Definition: int.h:33
Int16Field::Int16Field
Int16Field(std::string _display_name, std::string _extra_info)
Definition: int.cpp:126
BlamTagClassField::type
BlamTagFieldType type
The type of the field.
Definition: BlamTagClassField.h:39
Int32Field
Class representing an int32 tag field.
Definition: int.h:46
IntField::IntField
IntField(BlamTagFieldType _type, std::string _display_name, std::string _extra_info)
Definition: int.cpp:8
BlamTagClassField::read_length
int read_length
How many bytes to read from the start of the address.
Definition: BlamTagClassField.h:37
IntField
Class representing an int32 tag field.
Definition: int.h:16
int16_t
short int16_t
Definition: stdint.h:12
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
int.h
BlamTagClassField::visible
bool visible
Whether or not this field should be marked as visible within the editor.
Definition: BlamTagClassField.h:34