Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
debug_menu.cpp File Reference
#include "debug_menu.h"
#include <regex>
#include <fstream>
#include <Strings/components/utils/io/io.h>
#include <Strings/components/3rdparty/rapidxml/rapidxml.hpp>
#include <Strings/components/utils/string/string.h>
#include <Strings/components/utils/converters/converters.h>
#include "components/resources/engine_globals/globals.h"
#include "components/diagnostics/errors/errors.h"
#include "components/diagnostics/logger/logger.h"
#include "components/settings/config/config.h"

Functions

HRESULT load_menu_item (xml_node<> *entry_node, BlamDebugMenuItem *menu_item)
 Loads data for a debug menu item from an XML node. More...
 
void parse_debug_menu_xml_contents (std::string file_path)
 Reads the specified file as an XML document and builds debug menu data from it. More...
 

Variables

BlamDebugMenu main_menu
 The debug menu data. More...
 

Function Documentation

◆ load_menu_item()

HRESULT load_menu_item ( xml_node<> *  entry_node,
BlamDebugMenuItem menu_item 
)

Loads data for a debug menu item from an XML node.

Parameters
entry_node- The XML node of the item
menu_item- Pointer to the menu item to configure
Returns
- S_OK if the menu item was loaded, E_FAIL if the item could not be loaded

◆ parse_debug_menu_xml_contents()

void parse_debug_menu_xml_contents ( std::string  file_path)

Reads the specified file as an XML document and builds debug menu data from it.

Parameters
file_path- The path to the file containing debug menu information. Will most likely be debug_menu_init.

Variable Documentation

◆ main_menu

BlamDebugMenu main_menu

The debug menu data.