Elaztek Developer Hub
Blamite Game Engine - Strings  00402.09.29.23.0627.blamite
A library containing general purpose utilities and classes for use in multiple projects.
strings.h File Reference
#include <string>
#include <map>
#include <vector>
+ Include dependency graph for strings.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BlamStringAttribute
 Structure representing a Blamite string attribute. More...
 
class  BlamEngineString
 Class representing a Blamite string. More...
 

Namespaces

 BlamStrings
 Namespace for Blamite's shared C++ library.
 
 BlamStrings::Resources
 Functions used in loading and accessing resources.
 
 BlamStrings::Resources::Strings
 Namespace containing functions for Blamite string resources.
 

Macros

#define STRING_TEXT(string_id)   BlamStrings::Resources::Strings::LookupString(string_id)
 
#define ERROR_TEXT(error_code)   BlamStrings::Resources::Strings::LookupErrorString(error_code)
 
#define STRINGS_API   __declspec(dllimport)
 

Enumerations

enum  BlamLanguage { en_US }
 Enum containing all supported languages within the engine. More...
 

Functions

STRINGS_API bool BlamStrings::Resources::Strings::LoadCommonStrings (std::string base_dir)
 Loads the string tables editor_strings, error_strings, shared_strings, and config_strings. More...
 
STRINGS_API bool BlamStrings::Resources::Strings::LoadStrings (std::string file_path)
 Loads all strings in the given file into the universal string list. More...
 
STRINGS_API bool BlamStrings::Resources::Strings::LoadErrorStrings (std::string file_path)
 Loads all strings in the given file as error description strings. More...
 
STRINGS_API std::string BlamStrings::Resources::Strings::LookupString (std::string id)
 Finds a string with a given ID. More...
 
STRINGS_API std::string BlamStrings::Resources::Strings::LookupErrorString (int error_code)
 Finds a string message associated with a given error code. More...
 
STRINGS_API std::map< std::string, BlamEngineString > * BlamStrings::Resources::Strings::GetUniversalStrings ()
 Retrieves the list of all loaded strings. More...
 
STRINGS_API std::map< int, BlamEngineString * > * BlamStrings::Resources::Strings::GetErrorStrings ()
 Retrieves the list of all loaded error code strings. More...
 
STRINGS_API bool BlamStrings::Resources::Strings::StringExists (std::string id)
 Looks through the list of loaded engine strings to see if a given string has been loaded. More...
 
STRINGS_API bool BlamStrings::Resources::Strings::ErrorStringExists (int error_code)
 Looks through the list of loaded error strings to see if a given error string has been loaded. More...
 

Macro Definition Documentation

◆ ERROR_TEXT

#define ERROR_TEXT (   error_code)    BlamStrings::Resources::Strings::LookupErrorString(error_code)

◆ STRING_TEXT

#define STRING_TEXT (   string_id)    BlamStrings::Resources::Strings::LookupString(string_id)

◆ STRINGS_API

#define STRINGS_API   __declspec(dllimport)

Enumeration Type Documentation

◆ BlamLanguage

Enum containing all supported languages within the engine.

Enumerator
en_US