 |
Blamite Game Engine - blam!
00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file. 1 #include "../console.h"
24 description =
"Prints a message to the screen. Supports color arguments";
38 if (arguments.size() == 0)
49 std::string message_text =
"";
51 for (
int i = 0; i < arguments.size(); i++)
53 if (i == arguments.size() - 1)
55 message_text += arguments[i];
59 message_text += arguments[i] +
" ";
#define CMD_ERR_WRONG_ARGS_COUNT
Macro for Wrong Arg Count command status. See #Blam::Resources::Console::WrongArgumentCount for more ...
Definition: console.h:10
std::string description
An optional description of the command. Shown when using the classify command.
Definition: console.h:57
Class used to represent a console command.
Definition: console.h:54
@ color
Definition: render_model.h:12
BLAM void LogEventForce(std::string message, BlamLogLevel severity)
Forcibly logs a message to the log and/or console.
Definition: aliases.cpp:218
std::string name
The name of the console command.
Definition: console.h:56
Class for the print command.
Definition: print.hpp:18
BlamCommandType type
The type of command this is. See #Blam::Resources::Console::BlamCommandType for more information.
Definition: console.h:61
PrintCommand()
Definition: print.hpp:21
@ Builtin
A command that is hard-coded into the engine.
#define CMD_OK
Macro for OK command status. See #Blam::Resources::Console::Ok for more details.
Definition: console.h:8
~PrintCommand()
Definition: print.hpp:29
BlamCommandResult
Indicates the return state of a console command.
Definition: console.h:22
Namespace containing things related to the Blamite Logger.
Definition: logger.h:220
BlamCommandResult onCommand(std::vector< std::string > arguments)
Called upon command execution.
Definition: print.hpp:34
Namespace for things relating to the debug console.
Definition: abort.hpp:5