Formerly declared in vreChatCommandsManager.h. Register concrete implementations with DtVreChatManager::addCommand().
#include <vreChatManager.h>
|
| static bool | splitString (const std::string &stringToSplit, std::vector< std::string > &tokenized, const char delimiter=' ') |
| |
◆ ~DtChatCommand()
| virtual makVre::DtChatCommand::~DtChatCommand |
( |
| ) |
|
|
virtualdefault |
◆ execute()
| virtual bool makVre::DtChatCommand::execute |
( |
const std::string & | parameters | ) |
|
|
pure virtual |
Executes this command with the given parameter string.
- Parameters
-
| parameters | Everything after the command name |
- Returns
- True if the command executed successfully
◆ getWeak()
| virtual std::weak_ptr< DtChatCommand > makVre::DtChatCommand::getWeak |
( |
| ) |
|
|
inlinevirtual |
Returns a weak pointer to this command instance.
◆ help()
| virtual std::string makVre::DtChatCommand::help |
( |
const std::string & | parameters | ) |
|
|
inlinevirtual |
Returns help text for this command.
- Parameters
-
| parameters | Optional context passed when generating help |
◆ showInHelp()
| virtual bool makVre::DtChatCommand::showInHelp |
( |
| ) |
const |
|
inlinevirtual |
Whether this command appears in /help output.
◆ splitString()
| static bool makVre::DtChatCommand::splitString |
( |
const std::string & | stringToSplit, |
|
|
std::vector< std::string > & | tokenized, |
|
|
const char | delimiter = ' ' ) |
|
static |
Splits a string into tokens on a delimiter.
- Parameters
-
| stringToSplit | Input string |
| tokenized | Output token vector |
| delimiter | Split character (default: space) |
- Returns
- True if split produced tokens
The documentation for this class was generated from the following file: