Elaztek Developer Hub
Blamite Game Engine - blam!  00310.02.05.21.0336.blamite
The core library for the Blamite Game Engine.
tags.h File Reference
#include <string>
#include <vector>
#include <Windows.h>
#include <Strings/components/diagnostics/errors/errors.h>
#include "components/diagnostics/logger/logger.h"

Go to the source code of this file.

Classes

class  BlamTagData
 Class used to contain and access tag data. More...
 
struct  tag_block< entry_structure >
 Structure representing a tag block. More...
 
struct  tag_reference
 Structure representing a tag reference. More...
 
struct  data_reference
 Structure representing a data reference. More...
 

Namespaces

 Blam
 Namespace surrounding all major engine components.
 
 Blam::Content
 
 Blam::Content::Tags
 Namespace containing things related to tag data.
 

Macros

#define BLAM
 
#define TAG_FIELDSET_VERSION   2
 Macro defining the tag fieldset version. More...
 

Typedefs

typedef bool bitfield8[8]
 Typedef for a bitfield8 field, used in tag data definitions. More...
 
typedef bool bitfield16[16]
 Typedef for a bitfield16 field, used in tag data definitions. More...
 
typedef bool bitfield32[32]
 Typedef for a bitfield32 field, used in tag data definitions. More...
 
typedef char ascii[128]
 Typedef for an ascii field, used in tag data definitions. More...
 
typedef char stringid[128]
 Typedef for a stringid field, used in tag data definitions. More...
 

Enumerations

enum  TagOrigin { TagOrigin::BinaryFile, TagOrigin::Memory, TagOrigin::XMLFile, TagOrigin::CacheFile }
 Enum used to specify a tag's origin. More...
 

Functions

BLAM void Blam::Content::Tags::ShowImPropertyEditor (void *tag, std::string tag_class)
 Shows an ImGUI editor for a given tag. More...
 
BLAM bool Blam::Content::Tags::RegisterCreatedTag (void *tag, std::string tag_class)
 Registers a tag created in memory, making it available throughout the engine. More...
 
BLAM void Blam::Content::Tags::LoadReferencedTags (std::string tag_path)
 Attempts to resolve any tag references within a given tag. More...
 
BLAM void Blam::Content::Tags::ResolveAllTagReferences ()
 Attempts to resolve all tag references within all loaded tags. More...
 
BLAM BlamResult Blam::Content::Tags::LoadTagFromFile (std::string tag_path, bool reload_if_already_loaded=true)
 Loads a tag from the engine's tag directory (default is '. More...
 
BLAM BlamResult Blam::Content::Tags::SaveTag (std::string tag_path)
 Saves a tag data to a file. More...
 
BLAM BlamTagDataBlam::Content::Tags::GetTagData (std::string tag_path)
 Retrieves information for a given tag. More...
 
BLAM void Blam::Content::Tags::CleanupTagData ()
 Releases all memory used by tags. More...
 
BLAM std::vector< BlamTagData > * Blam::Content::Tags::GetLoadedTags ()
 Retrieves the list of loaded tag data. More...
 

Macro Definition Documentation

◆ BLAM

#define BLAM

◆ TAG_FIELDSET_VERSION

#define TAG_FIELDSET_VERSION   2

Macro defining the tag fieldset version.

This should be incremented any time a tag field type is changed in such a way that it becomes incompatiable with older tags - such as if a field's size is changed or if the data format is changed significantly.

Typedef Documentation

◆ ascii

typedef char ascii[128]

Typedef for an ascii field, used in tag data definitions.

◆ bitfield16

typedef bool bitfield16[16]

Typedef for a bitfield16 field, used in tag data definitions.

◆ bitfield32

typedef bool bitfield32[32]

Typedef for a bitfield32 field, used in tag data definitions.

◆ bitfield8

typedef bool bitfield8[8]

Typedef for a bitfield8 field, used in tag data definitions.

◆ stringid

typedef char stringid[128]

Typedef for a stringid field, used in tag data definitions.

Enumeration Type Documentation

◆ TagOrigin

enum TagOrigin
strong

Enum used to specify a tag's origin.

Enumerator
BinaryFile 

Indicates the tag originated from a binary file.

Memory 

Indicates the tag originated from the engine's memory.

XMLFile 

Indicates the tag originated from an XML file.

Currently unsupported.

Deprecated:
Will never be supported. Will be removed.
CacheFile 

Indicates the tag originated from a Blam Cache File (.map).