 |
Blamite Game Engine - blam!
00285.12.18.20.1411.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] +
" ";
std::string description
An optional description of the command. Shown when using the classify command.
Definition: console.h:76
#define CMD_ERR_WRONG_ARGS_COUNT
Macro for Wrong Arg Count command status. See Blam::Console::WrongArgumentCount for more details.
Definition: console.h:11
CommandType type
The type of command this is. See Blam::Console::CommandType for more information.
Definition: console.h:80
CommandStatus
Indicates the return state of a console command.
Definition: console.h:31
~PrintCommand()
Definition: print.hpp:29
@ Builtin
A command that is hard-coded into the engine.
Definition: console.h:44
std::string name
The name of the console command.
Definition: console.h:73
@ 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
Class for the print command.
Definition: print.hpp:18
CommandStatus 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
Class used to represent a console command.
Definition: console.h:53
#define CMD_OK
Macro for OK command status. See Blam::Console::Ok for more details.
Definition: console.h:9
PrintCommand()
Definition: print.hpp:21
Namespace containing things related to the Blamite Logger.
Definition: logger.h:245
Structure representing a color.
Definition: globals.h:20