Blamite Game Engine - blam!  00263.10.17.20.0001.blamite
The core library for the Blamite Game Engine.
engine_text.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <map>
5 
6 #define GAME_ENGINE_TEXT_FILE "game_engine_text.xml"
7 
8 #ifndef BLAM
9 #define BLAM
10 #endif
11 
16 {
18 };
19 
23 struct BlamString
24 {
25  std::string id;
26  std::string text;
27 };
28 
29 namespace Blam
30 {
41  namespace EngineText
42  {
49 
57  BLAM std::string LookupString(std::string id);
58 
67  BLAM std::string LookupErrorString(int error_code);
68  }
69 }
Blam
Namespace surrounding all major engine components.
Definition: blam_api.h:17
BLAM
#define BLAM
Definition: engine_text.h:9
Blam::EngineText::LookupString
BLAM std::string LookupString(std::string id)
Finds a string with a given ID.
Definition: engine_text.cpp:190
BlamLanguage
BlamLanguage
Enum containing all supported languages within the engine.
Definition: engine_text.h:15
BlamString
Structure representing a Blamite string.
Definition: engine_text.h:23
en_US
@ en_US
Definition: engine_text.h:17
BlamString::text
std::string text
The content of the string.
Definition: engine_text.h:26
BlamString::id
std::string id
The ID of the string.
Definition: engine_text.h:25
Blam::EngineText::LoadGameEngineStrings
BLAM bool LoadGameEngineStrings()
Loads all strings from the default game engine text file.
Definition: engine_text.cpp:70
Blam::EngineText::LookupErrorString
BLAM std::string LookupErrorString(int error_code)
Finds a string message associated with a given error code.
Definition: engine_text.cpp:204