![]() |
Blamite Game Engine - blam!
00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
|
Namespace containing data for the engine's debug menu. More...
Functions | |
BLAM void | InitializeDebugMenu () |
Load debug menu content from debug_menu_init.xml. More... | |
BLAM void | ReloadDebugMenu () |
Reloads debug menu content from debug_menu_init.xml. More... | |
BLAM BlamDebugMenu | GetDebugMenu () |
Retrieves the debug menu data. More... | |
Namespace containing data for the engine's debug menu.
BlamDebugMenu Blam::Resources::DebugMenu::GetDebugMenu | ( | ) |
Retrieves the debug menu data.
void Blam::Resources::DebugMenu::InitializeDebugMenu | ( | ) |
Load debug menu content from debug_menu_init.xml.
Initializes the debug menu.
This function will try and load a file with the .xml
extension first. If that isn't found, it will attempt to load a file with the .txt
extension as an XML file as a fallback. Ideally, we would have proper support for the original debug menu file format - and it probably wouldn't be that hard, really. The original debug menu is almost XML, but has a few key points where it breaks away from the standard.
As a result, virtually any attempt to load a legacy debug_menu_init.txt
will fail. Hopefully at some point, we can build a proper interpreter to load those old files again.
void Blam::Resources::DebugMenu::ReloadDebugMenu | ( | ) |
Reloads debug menu content from debug_menu_init.xml.
Clears all existing data for the debug menu and reloads it from the file.