 |
Blamite Game Engine - blam!
00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
5 #include <Strings/components/diagnostics/errors/errors.h>
8 #define BLAM_EXT_API __declspec(dllexport)
10 #define BLAM_EXT_API __declspec(dllimport)
94 BLAM BlamResult
LoadTagFromFile(std::string tag_path,
bool reload_if_already_loaded =
true);
int entry_size
The size of each block entry.
Definition: tags.h:253
BLAM BlamConfigurationFile * GetEngineConfiguration()
Retrieves the main engine configuration file.
Definition: config.cpp:60
bool flag4
Definition: tag_io.h:26
BLAM BlamResult SaveTag(std::string tag_path)
Saves a tag data to a file.
Definition: tag_io.cpp:769
Namespace containing functions related to tag data.
Definition: bitmap.h:181
BLAM void TagScriptPostprocess(BlamTagData *tag_data)
Definition: tag_postprocess.cpp:272
void * entry_data_address
The address of the blocks' entry data.
Definition: tags.h:255
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
BLAM int GetFieldSize(BlamTagFieldType type)
Retrieves the standard field size of a plugin field type.
Definition: fields.cpp:96
bool allow_user_tag_overrides
Definition: project_info.h:28
bool is_placeable
Definition: tag_io.h:22
void * LoadTagDataSection(int offset, int size, std::ifstream *tag_file)
Loads a tag data section from a file.
Definition: tag_io.cpp:85
std::string GetTagPath()
Retrieves the path of the tag that this tagref refers to.
Definition: tag_reference.cpp:57
@ Tags
Directory used for reading engine tags. Defaults to ./tags/
BLAM std::vector< BlamTagData * > * GetLoadedTags()
Retrieves the list of loaded tag data.
Definition: tags.cpp:157
char path[256]
The tag's path.
Definition: tags.h:145
std::string script_id
Definition: tags.h:151
bool FixupClonedTagData(void *tag_address, int size, void *original_tag_address)
Definition: tag_io.cpp:269
BLAM BlamResult LoadTagFromFile(std::string tag_path, bool reload_if_already_loaded=true)
Loads a tag from the engine's tag directory (default is '.
Definition: tag_io.cpp:319
int data_size
The size of tagref_address.
Definition: tags.h:298
BlamTagFieldType referenced_field_type
Definition: tags.h:458
std::vector< char > BuildTagDataSection(void *section_data, int size, int start_offset)
Prepares a tag data section for saving.
Definition: tag_io.cpp:706
BLAM_EXT_API BlamTagClass * GetTagClass(std::string id)
Retrieves a tag class that matches the given string.
Definition: tagclass.cpp:72
#define USER_DATA_PATH(path)
Macro to quickly access a user data folder.
Definition: config.h:41
BLAM bool TagNeedsPostprocess(BlamTagData *tag_data)
Checks if a given tag requires additional post-processing.
Definition: tag_postprocess.cpp:108
#define BLAM
Definition: tag_io.h:14
bool flag5
Definition: tag_io.h:27
unsigned long long uint64_t
Definition: stdint.h:18
BLAM BlamProjectInfo GetCurrentProjectInfo()
Definition: project.cpp:7
BLAM std::string GetLastLoadingTagPath()
Retrieves the tag path of the most recent tag that started loading.
Definition: tag_io.cpp:854
bool LoadTagDataSection__New(void *tag_address, int size, int header_size)
Definition: tag_io.cpp:221
#define ENGINE_VERSION
Definition: version_data.h:32
bool SetTagPath(std::string new_path)
Updates the tag path.
Definition: BlamTagData.cpp:39
bool uses_global_script
Definition: tags.h:155
BLAM BlamTagData * CloneTag(BlamTagData *original_tag_data)
Creates a copy of a tag in memory.
Definition: tag_io.cpp:826
Add a fourth parameter to bake specific font ranges NULL
Definition: README.txt:57
std::string class_name_short
The short, 4-character name of the tag class.
Definition: tags.h:206
#define ENGINE_DATA_PATH(path)
Macro to quickly access a game engine data folder.
Definition: config.h:34
int entry_count
The number of entries within the tag block.
Definition: tags.h:256
int version
The tag class version. Should be incremented any time a tag class is modified whatsoever.
Definition: tags.h:207
BLAM void TagPostprocess(BlamTagData *tag_data)
Performs any required post-processing for a given tag.
Definition: tag_postprocess.cpp:152
Structure representing a tag reference.
Definition: tags.h:289
Structure representing a field reference.
Definition: tags.h:455
std::string class_name_long
The longer class name. Typically shown alongside short name for user-friendliness.
Definition: tags.h:205
BLAM BlamResult LoadTagFromMemoryBlock(char *address, int size, std::string tag_path, bool reload_if_already_loaded=true)
Loads a tag from a block of memory.
Definition: tag_io.cpp:527
bool flag2
Definition: tag_io.h:24
unsigned int uint32_t
Definition: stdint.h:17
BLAM BlamTagData * GetTagData(std::string tag_path)
Retrieves information for a given tag.
Definition: tags.cpp:81
BLAM void ResolveAllTagReferences()
Attempts to resolve all tag references within all loaded tags.
Definition: tags.cpp:73
Definition: project_info.h:5
void LoadSectionTagReferences(char *address, int size, std::string tag_path)
Attempts to resolve any tag references within the given tag data section.
Definition: tag_io.cpp:28
bool data_is_tag
Whether or not tagref_address points to tag data, or the tag's path.
Definition: tags.h:296
void * data_address
The address of the referenced data.
Definition: tags.h:346
BLAM void LoadReferencedTags(std::string tag_path)
Adds an additional folder to search when attempting to load a tag.
Definition: tag_io.cpp:60
Structure representing a data reference.
Definition: tags.h:342
bool HasReference()
Checks if a tag reference has a tag specified or not.
Definition: tag_reference.cpp:81
bool flag6
Definition: tag_io.h:28
bool flag1
Definition: tag_io.h:23
int tag_size
The size of the tag's data. Used on loading/writing tag files.
Definition: tags.h:210
bool flag7
Definition: tag_io.h:29
int data_size
The size of the referenced data.
Definition: tags.h:347
uint32_t file_offset
Definition: tags.h:460
void * address
The address pointing to the start of the tag's data.
Definition: tags.h:132
bool flag3
Definition: tag_io.h:25
TagOrigin origin
The origin of the tag.
Definition: tags.h:147
Class used to contain and access tag data.
Definition: tags.h:125
void * tagref_address
The address of the tagref data.
Definition: tags.h:295
@ Tags
Directory storing user-created tags. Defaults to {DataRoot}/tags/.
void * field_address
Definition: tags.h:459
int size
The size of the tag's data in memory.
Definition: tags.h:133
bool ResolveReference()
Attempts to resolve a tag reference.
Definition: tag_reference.cpp:9
std::string loading_tag_path
Definition: tag_io.cpp:19
Class representing a tag class.
Definition: tags.h:202
std::string tag_class
The tag's short class name.
Definition: tags.h:146