 |
Blamite Game Engine - Strings
00326.06.27.21.0407.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Go to the documentation of this file.
7 #define STRING_TEXT(string_id) BlamStrings::Resources::Strings::LookupString(string_id)
8 #define ERROR_TEXT(error_code) BlamStrings::Resources::Strings::LookupErrorString(error_code)
10 #ifdef STRINGS_EXPORTS
11 #define STRINGS_API __declspec(dllexport)
13 #define STRINGS_API __declspec(dllimport)
53 bool HasAttribute(std::string
id);
64 std::string GetAttribute(std::string
id);
STRINGS_API bool ErrorStringExists(int error_code)
Looks through the list of loaded error strings to see if a given error string has been loaded.
Definition: strings.cpp:259
STRINGS_API std::map< std::string, BlamEngineString > * GetUniversalStrings()
Retrieves the list of all loaded strings.
Definition: strings.cpp:235
STRINGS_API bool LoadCommonStrings(std::string base_dir)
Loads the string tables editor_strings, error_strings, shared_strings, and config_strings.
Definition: strings.cpp:111
Namespace containing functions for Blamite string resources.
Definition: strings.h:70
@ en_US
Definition: strings.h:21
#define STRINGS_API
Definition: strings.h:13
STRINGS_API bool StringExists(std::string id)
Looks through the list of loaded engine strings to see if a given string has been loaded.
Definition: strings.cpp:245
std::string value
The attribute value.
Definition: strings.h:32
STRINGS_API std::string LookupErrorString(int error_code)
Finds a string message associated with a given error code.
Definition: strings.cpp:221
std::string text
The content of the string.
Definition: strings.h:42
STRINGS_API bool LoadStrings(std::string file_path)
Loads all strings in the given file into the universal string list.
Definition: strings.cpp:123
Structure representing a Blamite string attribute.
Definition: strings.h:29
std::vector< BlamStringAttribute > attributes
The list of attributes present within the string.
Definition: strings.h:44
Class representing a Blamite string.
Definition: strings.h:38
BlamLanguage
Enum containing all supported languages within the engine.
Definition: strings.h:19
std::string id
The ID of the string.
Definition: strings.h:41
STRINGS_API std::string LookupString(std::string id)
Finds a string with a given ID.
Definition: strings.cpp:207
std::string id
The attribute ID.
Definition: strings.h:31
STRINGS_API bool LoadErrorStrings(std::string file_path)
Loads all strings in the given file as error description strings.
Definition: strings.cpp:153
STRINGS_API std::map< int, BlamEngineString * > * GetErrorStrings()
Retrieves the list of all loaded error code strings.
Definition: strings.cpp:240