Elaztek Developer Hub
Blamite Game Engine - blam!  00357.06.18.22.0809.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 namespace Blam::Content::Tags
18 {
22  BLAM_EXT_API void AddExtraTagFolder(std::string tag_folder);
23 
29  BLAM void LoadReferencedTags(std::string tag_path);
30 
35 
49  BLAM BlamResult LoadTagFromFile(std::string tag_path, bool reload_if_already_loaded = true);
50 
58  BLAM BlamResult SaveTag(std::string tag_path);
59 }
Blam::Content::Tags::SaveTag
BLAM BlamResult SaveTag(std::string tag_path)
Saves a tag data to a file.
Definition: tag_io.cpp:398
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:10
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:132
BLAM
#define BLAM
Definition: tag_io.h:14
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:54
Blam::Content::Tags::AddExtraTagFolder
BLAM_EXT_API void AddExtraTagFolder(std::string tag_folder)
Definition: tag_io.cpp:49