Blamite Game Engine - Blam (Core)
debug_menu.cpp File Reference
#include "blam_ui.h"
#include <regex>
#include <fstream>
#include "components/core/console/console.h"
#include "components/haloscript/haloscript.h"
#include "components/core/utils/io/io.h"
#include "components/3rdparty/rapidxml/rapidxml.hpp"
#include "components/core/error/error.h"
#include "components/core/utils/string/string.h"
#include "components/core/logger/logger.h"
#include "components/core/utils/converters/converters.h"
#include "components/core/config/config.h"

Functions

HRESULT load_menu_item (xml_node<> *entry_node, Blam::DebugMenu::MenuItem *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

Blam::DebugMenu::Menu main_menu
 The debug menu data. More...
 

Function Documentation

◆ load_menu_item()

HRESULT load_menu_item ( xml_node<> *  entry_node,
Blam::DebugMenu::MenuItem 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

The debug menu data.