Elaztek Developer Hub
Blamite Game Engine - blam!  00423.10.27.24.0533.blamite
The core library for the Blamite Game Engine.
console.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <map>
5 #include <vector>
6 #include <Strings/components/diagnostics/errors/errors.h>
7 
8 #include "api/v1/types/console.h"
9 
10 #ifndef BLAM
11 #define BLAM
12 #endif
13 
18 {
26  BLAM std::string RegisterCommand(BlamConsoleCommand* command);
27 
35  BLAM void UnregisterCommand(std::string name);
36 
44  BLAM BlamConsoleCommand* GetCommand(std::string name);
45 
53  BLAM BlamResult RunCommandLine(std::string command_line);
54 
63  BLAM std::map<std::string, BlamConsoleCommand*> GetCommandList();
64 
69 
73  BLAM void Cleanup();
74 
78  BLAM void RunInitCommands();
79 }
Blam::Resources::Console::UnregisterCommand
BLAM void UnregisterCommand(std::string name)
Unregisters the console command with the specified name.
Definition: console.cpp:227
Blam::Resources::Console::RegisterBuiltinCommands
BLAM void RegisterBuiltinCommands()
Registers all hard-coded engine commands.
Definition: console.cpp:365
BlamConsoleCommand
Class used to represent a console command.
Definition: console.h:33
Blam::Resources::Console::GetCommand
BLAM BlamConsoleCommand * GetCommand(std::string name)
Retrieves a command with the specified name.
Definition: console.cpp:237
BLAM
#define BLAM
Definition: console.h:11
Blam::Resources::Console::RunInitCommands
BLAM void RunInitCommands()
Attempts to read init.txt and runs any commands added to it.
Definition: console.cpp:406
console.h
Blam::Resources::Console::GetCommandList
BLAM std::map< std::string, BlamConsoleCommand * > GetCommandList()
Retrieves the list of all loaded console commands.
Definition: console.cpp:232
Blam::Resources::Console::RunCommandLine
BLAM BlamResult RunCommandLine(std::string command_line)
Executed the provided string as a console command.
Definition: console.cpp:264
Blam::Resources::Console
Namespace for things relating to the debug console.
Definition: abort.hpp:5
Blam::Resources::Console::Cleanup
BLAM void Cleanup()
Cleans up all console command data.
Definition: console.cpp:355
Blam::Resources::Console::RegisterCommand
BLAM std::string RegisterCommand(BlamConsoleCommand *command)
Register a new command object.
Definition: console.cpp:220