Class PrintCommand

Inheritance Relationships

Base Type

Class Documentation

class PrintCommand : public Blam::Console::ConsoleCommand

Class for the print command.

This is an enhanced version of the original print command, which used to include color overrides. These overrides have not yet been implemented.

Implementation should match the original functionality documented on the repository’s wiki page for colors. Additionally, we should try to at some point get something similar to how Minecraft handles colors - that is, having color be able to changed mid-message with a special character followed by a color code.

Public Functions

PrintCommand()
~PrintCommand()
CommandStatus onCommand(std::vector<std::string> arguments)

Called upon command execution.

Return

The status of the command execution. See Blam::Console::CommandStatus for details.

Parameters
  • arguments: - The list of arguments passed to the command. Any space character in the command line is treated as a new argument.