Blamite Game Engine - blam!  00285.12.18.20.1411.blamite
The core library for the Blamite Game Engine.
engine_text.cpp File Reference
#include "engine_text.h"
#include <fstream>
#include <regex>
#include <Strings/components/3rdparty/rapidxml/rapidxml.hpp>
#include <Strings/components/utils/converters/converters.h>
#include <Strings/components/utils/io/io.h>
#include <Strings/components/utils/res/res.h>
#include "components/diagnostics/logger/logger.h"
#include "components/settings/config/config.h"
#include "components/settings/placeholders/placeholders.h"
#include "res/resource.h"
#include "core.h"

Functions

bool try_parse_xml_string (rapidxml::xml_node<> *string_node, BlamEngineString *_string)
 Attempts to parse an XML node into a BlamEngineString, and add it to game_engine_text. More...
 
void generate_engine_text_file ()
 

Variables

std::map< std::string, BlamEngineStringgame_engine_text
 Map containing all game engine text. More...
 
std::map< int, BlamEngineString * > error_strings
 Map containing a list of all error strings. More...
 

Function Documentation

◆ generate_engine_text_file()

void generate_engine_text_file ( )

◆ try_parse_xml_string()

bool try_parse_xml_string ( rapidxml::xml_node<> *  string_node,
BlamEngineString _string 
)

Attempts to parse an XML node into a BlamEngineString, and add it to game_engine_text.

Parameters
string_node- The XML node to try and parse.
_string- If the XML node was parsed successfully, this will be set to the resulting BlamEngineString.
Returns
true if the string was added, otherwise returns false.

Variable Documentation

◆ error_strings

std::map<int, BlamEngineString*> error_strings

Map containing a list of all error strings.

◆ game_engine_text

std::map<std::string, BlamEngineString> game_engine_text

Map containing all game engine text.