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

Functions

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

Variables

std::map< std::string, BlamStringgame_engine_text
 Map containing all game engine text. More...
 
std::map< int, BlamString * > 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,
BlamString _string 
)

Attempts to parse an XML node into a BlamString, 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 BlamString.
Returns
true if the string was added, otherwise returns false.

Variable Documentation

◆ error_strings

std::map<int, BlamString*> error_strings

Map containing a list of all error strings.

◆ game_engine_text

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

Map containing all game engine text.