 |
Blamite Game Engine - Blam (Core)
|
Go to the documentation of this file.
7 #include "components/3rdparty/imgui/imgui.h"
57 if (new_path.length() > 256)
66 void* clear_path = calloc(1, 256);
67 memcpy(
path, clear_path, 256);
70 memcpy(
path, new_path.c_str(), new_path.length());
96 void* empty_data = calloc(1, 256);
136 BLAM HRESULT
SaveTag(
void* tag_data, std::string tag_class,
int tag_size, std::string tag_path);
void * tag_address
Address to the referenced tag. Once this is set, should be used exclusively rather than the path.
Definition: tags.h:92
BLAM HRESULT LoadTagFromFile(std::string tag_path)
Loads a tag from the engine's tag directory (default is '.
Definition: tags.cpp:156
Namespace containing things related to tag data.
Definition: bitmap.h:9
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:33
std::string tag_class
The tag's short class name.
Definition: tags.h:45
void * address
The address pointing to the start of the tag's data.
Definition: tags.h:31
void * entry_data_address
The address of the blocks' entry data.
Definition: tags.h:82
int size
The size of the tag's data in memory.
Definition: tags.h:32
char block_identifier[6]
Special variable that is used for saving tag data to a file from within the engine....
Definition: tags.h:80
#define WSV_ERROR
Macro for 'Error' log seveirty. Original pre-enum value was 2.
Definition: logger.h:17
int entry_size
The size of each block entry.
Definition: tags.h:81
char tag_path[256]
The path to the tag file. Used for initial tag loading.
Definition: tags.h:91
TagOrigin origin
The origin of the tag.
Definition: tags.h:46
Structure representing a tag reference.
Definition: tags.h:89
#define WSV_NONE
Macro for 'None' log seveirty. Original pre-enum value was 0.
Definition: logger.h:15
BLAM std::string RegisterCreatedTag(void *tag, std::string tag_class)
Definition: tags.cpp:45
Class representing a tag's data.
Definition: tags.h:28
BLAM std::vector< tag_memory_data > * GetLoadedTags()
Retrieves the list of loaded tag data.
Definition: tags.cpp:507
bool SetTagPath(std::string new_path)
Updates the tag path.
Definition: tags.h:55
BLAM void CleanupTagData()
Definition: tags.cpp:499
BLAM void ShowImPropertyEditor(void *tag, std::string tag_class)
Shows an ImGUI editor for a given tag.
Definition: tags.cpp:21
@ TagDebug
Report file for all tag related messages.
Definition: logger.h:80
BLAM tag_memory_data * GetTagData(std::string tag_path)
Retrieves information for a given tag.
Definition: tags.cpp:486
tag_reference()
Definition: tags.h:94
BLAM HRESULT SaveTag(void *tag_data, std::string tag_class, int tag_size, std::string tag_path)
Saves a tag data to a file.
Definition: tags.cpp:381
int entry_count
The number of entries within the tag block.
Definition: tags.h:83
char path[256]
The tag's path.
Definition: tags.h:44