Class endstone::CommandMap¶
ClassList > endstone > CommandMap
Represents a command map that manages all commands of the Server .
#include <endstone/command/command_map.h>
Public Functions¶
| Type | Name |
|---|---|
| CommandMap () = default |
|
| CommandMap (const CommandMap &) = delete |
|
| CommandMap (CommandMap &&) = default |
|
| virtual void | clearCommands () = 0 |
| virtual Command * | getCommand (std::string name) const = 0 |
| CommandMap & | operator= (const CommandMap &) = delete |
| CommandMap & | operator= (CommandMap &&) = default |
| virtual bool | registerCommand (std::shared_ptr< Command > command) = 0 |
| virtual | ~CommandMap () = default |
Public Functions Documentation¶
function CommandMap [⅓]¶
function CommandMap [⅔]¶
function CommandMap [3/3]¶
function clearCommands¶
Clears all registered commands.
function getCommand¶
Gets the command registered to the specified name
Parameters:
nameName of the command to retrieve
Returns:
Command with the specified name or nullptr if a command with that label doesn't exist
function operator=¶
function operator=¶
function registerCommand¶
Registers a command.
Parameters:
commandthe command to register
Returns:
true on success, false if a command with the same name is already registered
function ~CommandMap¶
The documentation for this class was generated from the following file include/endstone/command/command_map.h