Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
Blam::Resources::Console Namespace Reference

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 BlamConsoleCommandGetCommand (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...
 

Detailed Description

Namespace for things relating to the debug console.

Function Documentation

◆ Cleanup()

void Blam::Resources::Console::Cleanup ( )

Cleans up all console command data.

◆ GetCommand()

BlamConsoleCommand * Blam::Resources::Console::GetCommand ( std::string  name)

Retrieves a command with the specified name.

Parameters
name- The name of the command to be retrieved.
Returns
A pointer to the console command, or nullptr if the command could not be found.

◆ GetCommandList()

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.

Returns
The map<> of commands.

◆ RegisterBuiltinCommands()

void Blam::Resources::Console::RegisterBuiltinCommands ( )

Registers all hard-coded engine commands.

◆ RegisterCommand()

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.

Parameters
command- The command to be registered.
Returns
The name property of the provided command.

◆ RunCommandLine()

HRESULT Blam::Resources::Console::RunCommandLine ( std::string  command_line)

Executed the provided string as a console command.

Parameters
command_line- The text that was typed into the console.
Returns
Will always return S_OK.

◆ UnregisterCommand()

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

Parameters
name- The name of the command to be unregistered.