|
ReXGlue SDK
|
#include <rex/console_command.h>
Public Member Functions | |
| ConsoleCommand (SettingOwner *owner, std::string_view name, std::string_view help, MoveOnlyFunction< Result< void >(std::string_view args)> run) | |
| const std::string & | GetName () const |
| const std::string & | GetHelp () const |
| Result< void > | Run (std::string_view args) |
Additional Inherited Members | |
| Protected Member Functions inherited from rex::NonCopyable | |
| NonCopyable (const NonCopyable &)=delete | |
| NonCopyable & | operator= (const NonCopyable &)=delete |
A console command an owner registers, declared with REX_COMMAND. Runs on the calling thread.
| rex::ConsoleCommand::ConsoleCommand | ( | SettingOwner * | owner, |
| std::string_view | name, | ||
| std::string_view | help, | ||
| MoveOnlyFunction< Result< void >(std::string_view args)> | run ) |
| run | Called with the argument text. |
| const std::string & rex::ConsoleCommand::GetName | ( | ) | const |
Returns the full name.