Elaztek Developer Hub
Blamite Game Engine - blam!  00388.06.24.23.2301.blamite
The core library for the Blamite Game Engine.
tagclass.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <vector>
5 #include <Windows.h>
6 #include <Strings/components/utils/io/io.h>
7 #include "api/v1/types/tags.h"
8 
9 #ifndef BLAM
10 #define BLAM
11 #endif
12 
13 namespace Blam::Content::Tags
14 {
18  BLAM void LoadDefaultClasses();
19 
27  BLAM_EXT_API BlamTagClass* GetTagClass(std::string id);
28 
34  BLAM_EXT_API std::vector<BlamTagClass*>* GetRegisteredTagClasses();
35 
42 
48  BLAM void GenerateAllPlugins(bool require_switch);
49 }
50 
56 namespace BlamTagClassOLD
57 {
64 }
test_tag.h
tag_io.h
Blam::Content::Tags::TagPostprocess
BLAM void TagPostprocess(BlamTagData tag_data)
Performs any required post-processing for a given tag.
Definition: tag_postprocess.cpp:27
Blam::Content::Tags::RegisterTagClass
BLAM void RegisterTagClass(BlamTagClass *data)
Registers a new tag class within the engine.
Definition: tagclass.cpp:79
Blam::Content::Tags
Namespace containing functions related to tag data.
Definition: bitmap.h:151
Blam::Logger::LogEvent
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:142
Blam::Content::Tags::LoadDefaultClasses
BLAM void LoadDefaultClasses()
Loads all built-in tag classes available to the engine.
Definition: tagclass.cpp:118
logger.h
Blam::Content::Tags::Classes::ClientUIScreenTagClass
Tag class information for Color Table tags.
Definition: cui_screen.h:30
bitmap.h
tag_reference::GetTagPath
std::string GetTagPath()
Retrieves the path of the tag that this tagref refers to.
Definition: tag_reference.cpp:63
BLAM_EXT_API
#define BLAM_EXT_API
Definition: api.h:9
BlamTagData::path
char path[256]
The tag's path.
Definition: tags.h:46
Blam::Content::Tags::LoadTagFromFile
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:194
tag_reference::data_size
int data_size
The size of tagref_address.
Definition: tags.h:190
Blam::Content::Tags::GetTagClass
BLAM_EXT_API BlamTagClass * GetTagClass(std::string id)
Retrieves a tag class that matches the given string.
Definition: tagclass.cpp:66
Blam::Content::Tags::Classes::LightTagClass
Definition: light.h:84
rendering.h
Blam::Content::Tags::Classes::ScenarioTagClass
Definition: scenario.h:54
scenario.h
Blam::Content::Tags::GetRegisteredTagClasses
BLAM_EXT_API std::vector< BlamTagClass * > * GetRegisteredTagClasses()
Retrieves the list of all registered tag classes.
Definition: tagclass.cpp:84
cui_screen.h
light.h
NULL
Add a fourth parameter to bake specific font ranges NULL
Definition: README.txt:57
material.h
ENGINE_DATA_PATH
#define ENGINE_DATA_PATH(path)
Macro to quickly access a game engine data folder.
Definition: config.h:36
BLAM
#define BLAM
Definition: tagclass.h:10
material
Structure representing a Material tag.
Definition: material.h:46
BlamRendering::OGRE::Utils::BuildDatablockFromTag
BLAM bool BuildDatablockFromTag(material *material_tag, std::string tag_path)
Definition: materials.cpp:551
tag_reference::class_name
char class_name[4]
The tag class identifier. Will be the short class name.
Definition: tags.h:185
Blam::Content::Tags::GetTagData
BLAM BlamTagData * GetTagData(std::string tag_path)
Retrieves information for a given tag.
Definition: tags.cpp:80
Blam::Content::Tags::GetBitmapTag
BLAM bitmap * GetBitmapTag(std::string tag_path)
Definition: bitmap.cpp:5
MaterialTagClass
Definition: material.h:200
Blam::Content::Tags::GetLoadedTags
BLAM std::vector< BlamTagData > * GetLoadedTags()
Retrieves the list of loaded tag data.
Definition: tags.cpp:142
Blam::Content::Tags::GenerateAllPlugins
BLAM void GenerateAllPlugins(bool require_switch)
Instructs the engine to generate Assembly/Guerilla plugins at startup.
Definition: tagclass.cpp:89
tag_reference::data_is_tag
bool data_is_tag
Whether or not tagref_address points to tag data, or the tag's path.
Definition: tags.h:188
registered_classes
std::vector< BlamTagClass * > registered_classes
List of all registered tag classes.
Definition: tagclass.cpp:64
tag_reference::identifier
char identifier[8]
The tag reference identifier. Will always be trfd followed by 4 NULL bytes.
Definition: tags.h:184
tag_reference::HasReference
bool HasReference()
Checks if a tag reference has a tag specified or not.
Definition: tag_reference.cpp:87
BlamTagClassOLD
Legacy namespace for tag class data.
Definition: tagclass.h:56
Blam::Content::Tags::TagNeedsPostprocess
BLAM bool TagNeedsPostprocess(BlamTagData tag_data)
Checks if a given tag requires additional post-processing.
Definition: tag_postprocess.cpp:8
color_table.h
BlamTagClass::tag_size
int tag_size
The size of the tag's data. Used on loading/writing tag files.
Definition: tags.h:96
BlamEngineDataFolder::Plugins
@ Plugins
Directory used to store built-in plugin files for use with the Editing Kit. Defaults to ....
wasd_shit.h
TestTagTagClass
Definition: test_tag.h:97
bitmap
Structure representing a Bitmap tag.
Definition: bitmap.h:27
BlamTagData::address
void * address
The address pointing to the start of the tag's data.
Definition: tags.h:33
WasdShitTagClass
Definition: wasd_shit.h:43
compile_test_1.h
tagclass.h
config.h
tags.h
tags.h
BlamTagData
Class used to contain and access tag data.
Definition: tags.h:30
Blam::Content::Tags::GetMaterialTag
BLAM material * GetMaterialTag(std::string tag_path)
Definition: material.cpp:5
tag_reference::tagref_address
void * tagref_address
The address of the tagref data.
Definition: tags.h:187
tag_reference::ResolveReference
bool ResolveReference()
Attempts to resolve a tag reference.
Definition: tag_reference.cpp:25
tag_reference::tag_reference
tag_reference()
Initializes a new tag_reference.
Definition: tag_reference.cpp:6
Blam::Content::Tags::Classes::ColorTableTagClass
Tag class information for Color Table tags.
Definition: color_table.h:35
BlamTagClass
Class representing a tag class.
Definition: tags.h:86
BitmapTagClass
Definition: bitmap.h:56
BlamTagClassOLD::scenario_structure_bsp
BLAM void scenario_structure_bsp()
Legacy function made before I had any idea what I was doing.
Definition: tagclass.cpp:31
BlamRendering::OGRE::Utils::BuildTextureFromTag
BLAM void BuildTextureFromTag(bitmap *bitmap_tag, std::string tag_path)
Definition: textures.cpp:84
BlamTagData::tag_class
std::string tag_class
The tag's short class name.
Definition: tags.h:47
Compile_test_1TagClass
Definition: compile_test_1.h:31