![]() |
Blamite Game Engine - blam!
00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
|
Namespace for things relating to the debug console. More...
Namespaces | |
Handlers | |
Functions used to handle multiple commands that have similar behavior. | |
Classes | |
class | AbortCommand |
Class for the abort command. More... | |
class | ClassifyCommand |
Class for the classify command. More... | |
class | ClearScreenCommand |
Class for the cls command. More... | |
class | CrashCommand |
Class for the crash command. More... | |
class | CreateCommandObjectCommand |
Class for the create_cmd_obj command. More... | |
class | DXRenderTargetClearCommand |
Class for the dx_render_target_clear command. More... | |
class | GeneratePluginsCommand |
Class for the generate_plugins command. More... | |
class | Halo2HelpCommand |
Class for the h2help command. More... | |
class | Halo2PrintCommand |
Class for the h2print command. More... | |
class | HelpCommand |
Class for the help command. More... | |
class | HistoryCommand |
Class for the history command. More... | |
class | ListColorsCommand |
Class for the list_colors command. More... | |
class | ListLevelsCommand |
Class for the list_levels command. More... | |
class | NoUCommand |
Class for the nou command. More... | |
class | OpenGameDirectoryCommand |
Class for the open_game_dir command. More... | |
class | OpenWebURLCommand |
Class for the open_web_url command. More... | |
class | PrintCommand |
Class for the print command. More... | |
class | QuitCommand |
Class for the quit command. More... | |
class | RegenDebugMenuCommand |
Class for the regenerate_debug_menu command. More... | |
class | ResolutionCommand |
Class for the screenres command. More... | |
class | ScreenshotCommand |
Class for the screenshot command. More... | |
class | ScriptDocCommand |
Class for the script_doc command. More... | |
class | SentryTestCommand |
A command to test Sentry functionality. More... | |
class | ShowStatsCommand |
Class for the show_stats command. More... | |
class | ToggleImguiWindowCommand |
Class for the toggle_imgui_window command. More... | |
class | VersionCommand |
Class for the version command. More... | |
class | Win32DialogTestCommand |
Class for the win32_dialog_test command. More... | |
Functions | |
BLAM std::string | RegisterCommand (BlamConsoleCommand *command) |
Register a new command object. More... | |
BLAM void | UnregisterCommand (std::string name) |
Unregisters the console command with the specified name. More... | |
BLAM BlamConsoleCommand * | GetCommand (std::string name) |
Retrieves a command with the specified name. More... | |
BLAM HRESULT | RunCommandLine (std::string command_line) |
Executed the provided string as a console command. More... | |
BLAM std::map< std::string, BlamConsoleCommand * > | GetCommandList () |
Retrieves the list of all loaded console commands. More... | |
BLAM void | RegisterBuiltinCommands () |
Registers all hard-coded engine commands. More... | |
BLAM void | Cleanup () |
Cleans up all console command data. More... | |
Namespace for things relating to the debug console.
void Blam::Resources::Console::Cleanup | ( | ) |
Cleans up all console command data.
BlamConsoleCommand * Blam::Resources::Console::GetCommand | ( | std::string | name | ) |
Retrieves a command with the specified name.
name | - The name of the command to be retrieved. |
nullptr
if the command could not be found. std::map< std::string, BlamConsoleCommand * > Blam::Resources::Console::GetCommandList | ( | ) |
Retrieves the list of all loaded console commands.
The key is the name of the command. The value is a pointer to the console command object.
void Blam::Resources::Console::RegisterBuiltinCommands | ( | ) |
Registers all hard-coded engine commands.
std::string Blam::Resources::Console::RegisterCommand | ( | BlamConsoleCommand * | command | ) |
Register a new command object.
This must be called for the command to be usable in scripts or from console.
command | - The command to be registered. |
name
property of the provided command. HRESULT Blam::Resources::Console::RunCommandLine | ( | std::string | command_line | ) |
Executed the provided string as a console command.
command_line | - The text that was typed into the console. |
S_OK
. void Blam::Resources::Console::UnregisterCommand | ( | std::string | name | ) |
Unregisters the console command with the specified name.
After calling this, the specified command will no longer be usable in scripts or from console
name | - The name of the command to be unregistered. |