 |
Blamite Game Engine - blam!
00423.10.27.24.0533.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
8 #define BLAM_EXT_API __declspec(dllexport)
10 #define BLAM_EXT_API __declspec(dllimport)
36 Bitfield8Field(std::string _display_name, std::string _extra_info, std::vector<std::string> _options);
47 Bitfield16Field(std::string _display_name, std::string _extra_info, std::vector<std::string> _options);
58 Bitfield32Field(std::string _display_name, std::string _extra_info, std::vector<std::string> _options);
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
void GeneratePluginFile()
Generates a plugin file from the given tag.
Definition: BlamTagClass.cpp:35
IMGUI_API bool Checkbox(const char *label, bool *v)
Definition: imgui_widgets.cpp:974
#define BLAM_BITFIELD_SHOW_FLAG_CONTROL(index)
Definition: bitfield.cpp:9
std::string description
The description of the changes made to the tag.
Definition: tags.h:179
BitfieldField(BlamTagFieldType _type, std::string _display_name, std::string _extra_info, std::vector< std::string > _options)
Definition: bitfield.cpp:14
std::string GetFieldXMLString(int offset)
Generates a string representing an XML node associated with this tag field, used for generating plugi...
Definition: bitfield.cpp:180
std::string display_name
The display name of the tag field.
Definition: BlamTagClassField.h:31
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
Typedef for a bitfield32 field, used in tag data definitions.
Definition: tags.h:383
void ShowImPropertyControl()
Shows a set of ImGUI controls representing the tag field.
Definition: bitfield.cpp:37
Structure representing a tag class revision.
Definition: tags.h:175
IMGUI_API float CalcItemWidth()
Definition: imgui.cpp:6192
std::vector< std::string > options
List of options available in the bitfield.
Definition: bitfield.h:19
Class representing a bitfield16 tag field.
Definition: bitfield.h:44
IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f)
Definition: imgui.cpp:7147
Base class representing a plugin field.
Definition: BlamTagClassField.h:28
#define BLAM_EXT_API
Definition: bitfield.h:10
std::vector< BlamTagClassField * > fields
A series of tag fields that store the layout of the tag.
Definition: tags.h:200
Typedef for a bitfield8 field, used in tag data definitions.
Definition: tags.h:344
ImVec2 WindowPadding
Definition: imgui.h:1293
Bitfield16Field(std::string _display_name, std::string _extra_info, std::vector< std::string > _options)
Definition: bitfield.cpp:222
#define ENGINE_VERSION
Definition: version_data.h:32
std::vector< BlamTagClassRevision > revisions
List of all tag class revisions. Does not get written to tags, but is included in plugin files.
Definition: tags.h:199
void ShowImPropertyEditor()
Shows a series of ImGUI controls used to modify tag data with a simple UI.
Definition: BlamTagClass.cpp:13
std::string class_name_short
The short, 4-character name of the tag class.
Definition: tags.h:197
#define ENGINE_DATA_PATH(path)
Macro to quickly access a game engine data folder.
Definition: config.h:34
IMGUI_API void Text(const char *fmt,...) IM_FMTARGS(1)
Definition: imgui_widgets.cpp:238
void * tag_address
The memory address of a tag. Used when a tag class is used in the context of a tag.
Definition: tags.h:202
Class representing a bitfield32 tag field.
Definition: bitfield.h:55
std::string class_name_long
The longer class name. Typically shown alongside short name for user-friendliness.
Definition: tags.h:196
void * read_address
The address of the data the field is currently representing.
Definition: BlamTagClassField.h:36
BLAM std::string GetFieldName(BlamTagFieldType type)
Retrieves a string representation of a plugin field type.
Definition: fields.cpp:3
Bitfield8Field(std::string _display_name, std::string _extra_info, std::vector< std::string > _options)
Definition: bitfield.cpp:216
@ ImGuiWindowFlags_HorizontalScrollbar
Definition: imgui.h:725
Base class for Bitfield plugin fields.
Definition: bitfield.h:16
Bitfield32Field(std::string _display_name, std::string _extra_info, std::vector< std::string > _options)
Definition: bitfield.cpp:228
IMGUI_API ImGuiStyle & GetStyle()
Definition: imgui.cpp:3306
BlamTagFieldType type
The type of the field.
Definition: BlamTagClassField.h:39
IMGUI_API void EndChild()
Definition: imgui.cpp:4764
Typedef for a bitfield16 field, used in tag data definitions.
Definition: tags.h:359
int revision
The revision number.
Definition: tags.h:177
int read_length
How many bytes to read from the start of the address.
Definition: BlamTagClassField.h:37
float y
Definition: imgui.h:181
int tag_size
The size of the tag's data. Used on loading/writing tag files.
Definition: tags.h:201
@ Plugins
Directory used to store built-in plugin files for use with the Editing Kit. Defaults to ....
ImVec2 ItemSpacing
Definition: imgui.h:1306
void SetMemoryLocation(void *address)
Sets the address and size of the tag that this class should be applied to.
Definition: BlamTagClass.cpp:21
virtual void ShowImPropertyControl()
Shows a set of ImGUI controls representing the tag field.
Definition: BlamTagClassField.cpp:22
std::string extra_info
Additional information to show alongside the field.
Definition: BlamTagClassField.h:32
IMGUI_API void TextDisabled(const char *fmt,...) IM_FMTARGS(1)
Definition: imgui_widgets.cpp:272
std::string author
The author of the tag revision.
Definition: tags.h:178
IMGUI_API bool BeginChild(const char *str_id, const ImVec2 &size=ImVec2(0, 0), bool border=false, ImGuiWindowFlags flags=0)
Definition: imgui.cpp:4752
Class representing a bitfield8 tag field.
Definition: bitfield.h:33
bool visible
Whether or not this field should be marked as visible within the editor.
Definition: BlamTagClassField.h:34