Elaztek Developer Hub
Blamite Game Engine - blam!  00368.02.12.23.1347.blamite
The core library for the Blamite Game Engine.
tag_io.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 #include <Strings/components/diagnostics/errors/errors.h>
6 
7 #ifdef BLAM_EXPORTS
8 #define BLAM_EXT_API __declspec(dllexport)
9 #else
10 #define BLAM_EXT_API __declspec(dllimport)
11 #endif
12 
13 #ifndef BLAM
14 #define BLAM
15 #endif
16 
17 class BlamTagData;
18 
19 namespace Blam::Content::Tags
20 {
24  BLAM_EXT_API void AddExtraTagFolder(std::string tag_folder);
25 
31  BLAM void LoadReferencedTags(std::string tag_path);
32 
37 
51  BLAM BlamResult LoadTagFromFile(std::string tag_path, bool reload_if_already_loaded = true);
52 
53  BLAM BlamResult LoadTagFromMemoryBlock(char* address, int size, std::string tag_path, bool reload_if_already_loaded = true);
54 
62  BLAM BlamResult SaveTag(std::string tag_path);
63 
64  BLAM bool TagNeedsPostprocess(BlamTagData tag_data);
65 
66  BLAM void TagPostprocess(BlamTagData tag_data);
67 }
Blam::Content::Tags::TagPostprocess
BLAM void TagPostprocess(BlamTagData tag_data)
Definition: tag_postprocess.cpp:27
Blam::Content::Tags::SaveTag
BLAM BlamResult SaveTag(std::string tag_path)
Saves a tag data to a file.
Definition: tag_io.cpp:627
BLAM_EXT_API
#define BLAM_EXT_API
Definition: tag_io.h:10
Blam::Content::Tags
Namespace containing functions related to tag data.
Definition: bitmap.h:151
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
BLAM
#define BLAM
Definition: tag_io.h:14
Blam::Content::Tags::LoadTagFromMemoryBlock
BLAM BlamResult LoadTagFromMemoryBlock(char *address, int size, std::string tag_path, bool reload_if_already_loaded=true)
Definition: tag_io.cpp:395
Blam::Content::Tags::ResolveAllTagReferences
BLAM void ResolveAllTagReferences()
Attempts to resolve all tag references within all loaded tags.
Definition: tags.cpp:72
Blam::Content::Tags::LoadReferencedTags
BLAM void LoadReferencedTags(std::string tag_path)
Attempts to resolve any tag references within a given tag.
Definition: tag_io.cpp:57
Blam::Content::Tags::TagNeedsPostprocess
BLAM bool TagNeedsPostprocess(BlamTagData tag_data)
Definition: tag_postprocess.cpp:8
BlamTagData
Class used to contain and access tag data.
Definition: tags.h:64
Blam::Content::Tags::AddExtraTagFolder
BLAM_EXT_API void AddExtraTagFolder(std::string tag_folder)
Definition: tag_io.cpp:52