![]() |
Blamite Game Engine - Guerilla
00307.01.26.21.0804.blamite
The tag editor for the Blamite Game Engine.
|
Class representing a Tag. More...
#include <tags.h>
Public Member Functions | |
BlamTag (std::string _file_path) | |
Prepares a new tag to be loaded. More... | |
~BlamTag () | |
Releases any data used by the tag by calling #ReleaseFieldData. More... | |
BlamResult | LoadFromDisk () |
Loads the tag as an XML document from disk. More... | |
void | SaveToDisk (std::string file_path) |
Saves any modifications to the XML tag back to disk. More... | |
BlamResult | Decompile () |
Attempts to read the binary tag data. More... | |
BlamResult | Compile (std::string file_path) |
Compiles the tag data to a file that can be used with the engine. More... | |
Public Attributes | |
BlamPlugin * | plugin = nullptr |
Pointer to the plugin associated with this tag. More... | |
std::vector< BlamRevision > | revisions = std::vector<BlamRevision>() |
The list of revisions within the tag. More... | |
std::vector< BlamTagField * > | fields = std::vector<BlamTagField*>() |
The list of fields within the tag. More... | |
std::string | file_path = "" |
The path to the tag file. More... | |
int | class_version = -1 |
The class/plugin version of the tag. More... | |
std::string | class_name = "" |
The class name as specified in the tag file. Used in the event a plugin could not be found. More... | |
Class representing a Tag.
Tags can be in one of two formats:
BlamTag::BlamTag | ( | std::string | _file_path | ) |
Prepares a new tag to be loaded.
_file_path | - The path to the tag file. |
BlamTag::~BlamTag | ( | ) |
Releases any data used by the tag by calling #ReleaseFieldData.
BlamResult BlamTag::Compile | ( | std::string | file_path | ) |
Compiles the tag data to a file that can be used with the engine.
file_path | - The path to the resulting tag file. |
BlamResult BlamTag::Decompile | ( | ) |
Attempts to read the binary tag data.
Requires a compatiable plugin to be available.
BlamResult BlamTag::LoadFromDisk | ( | ) |
Loads the tag as an XML document from disk.
void BlamTag::SaveToDisk | ( | std::string | file_path | ) |
Saves any modifications to the XML tag back to disk.
file_path | - The path to the resulting tag file. |
std::string BlamTag::class_name = "" |
The class name as specified in the tag file. Used in the event a plugin could not be found.
int BlamTag::class_version = -1 |
The class/plugin version of the tag.
std::vector<BlamTagField*> BlamTag::fields = std::vector<BlamTagField*>() |
The list of fields within the tag.
std::string BlamTag::file_path = "" |
The path to the tag file.
BlamPlugin* BlamTag::plugin = nullptr |
Pointer to the plugin associated with this tag.
std::vector<BlamRevision> BlamTag::revisions = std::vector<BlamRevision>() |
The list of revisions within the tag.