 |
Blamite Game Engine - blam!
00398.09.22.23.2015.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] +
" ";
@ Builtin
A command that is hard-coded into the engine.
std::string description
An optional description of the command. Shown when using the classify command.
Definition: console.h:59
Class used to represent a console command.
Definition: console.h:56
BlamCommandResult
Indicates the return state of a console command.
Definition: console.h:22
#define CMD_OK
Macro for OK command status. See #Blam::Resources::Console::Ok for more details.
Definition: console.h:8
std::string name
The name of the console command.
Definition: console.h:58
#define CMD_ERR_WRONG_ARGS_COUNT
Macro for Wrong Arg Count command status. See #Blam::Resources::Console::WrongArgumentCount for more ...
Definition: console.h:10
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:63
PrintCommand()
Definition: print.hpp:21
~PrintCommand()
Definition: print.hpp:29
BLAM void LogEventForce(std::string message)
Forcibly logs a message to the log and/or console.
Definition: aliases.cpp:274
Namespace containing things related to the Blamite Logger.
Definition: logger.h:200
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