Elaztek Developer Hub
Blamite Game Engine - blam!  00406.12.10.23.1457.blamite
The core library for the Blamite Game Engine.
console.h File Reference
#include <string>
#include <map>
#include <vector>
#include <Strings/components/diagnostics/errors/errors.h>
+ Include dependency graph for console.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BlamConsoleCommand
 Class used to represent a console command. More...
 

Namespaces

 Blam
 Namespace surrounding all major engine components.
 
 Blam::Resources
 
 Blam::Resources::Console
 Namespace for things relating to the debug console.
 

Macros

#define BLAM
 

Enumerations

enum  BlamCommandType { BlamCommandType::Builtin, BlamCommandType::Script, BlamCommandType::Other }
 Used to indicate the type of command. More...
 

Functions

BLAM std::string Blam::Resources::Console::RegisterCommand (BlamConsoleCommand *command)
 Register a new command object. More...
 
BLAM void Blam::Resources::Console::UnregisterCommand (std::string name)
 Unregisters the console command with the specified name. More...
 
BLAM BlamConsoleCommandBlam::Resources::Console::GetCommand (std::string name)
 Retrieves a command with the specified name. More...
 
BLAM BlamResult Blam::Resources::Console::RunCommandLine (std::string command_line)
 Executed the provided string as a console command. More...
 
BLAM std::map< std::string, BlamConsoleCommand * > Blam::Resources::Console::GetCommandList ()
 Retrieves the list of all loaded console commands. More...
 
BLAM void Blam::Resources::Console::RegisterBuiltinCommands ()
 Registers all hard-coded engine commands. More...
 
BLAM void Blam::Resources::Console::Cleanup ()
 Cleans up all console command data. More...
 
BLAM void Blam::Resources::Console::RunInitCommands ()
 Attempts to read init.txt and runs any commands added to it. More...
 

Macro Definition Documentation

◆ BLAM

#define BLAM

Enumeration Type Documentation

◆ BlamCommandType

enum BlamCommandType
strong

Used to indicate the type of command.

Enumerator
Builtin 

A command that is hard-coded into the engine.

Script 

A command that originates from a BlamScript.

Other 

Currently unused.