|
| ConsoleCommandManipulator (ConsoleCommand *command) |
| Constructor: Creates a manipulator for a given ConsoleCommand. More...
|
|
ConsoleCommandManipulator & | accessLevel (AccessLevel level) |
| Changes the access level of the command. More...
|
|
ConsoleCommandManipulator & | activate () |
| Activates the command. More...
|
|
ConsoleCommandManipulator & | argumentCompleter (unsigned int index, ArgumentCompleter *completer) |
| Changes the argument completer for the given parameter. More...
|
|
ConsoleCommandManipulator & | deactivate () |
| Deactivates the command. More...
|
|
ConsoleCommandManipulator & | defaultValue (unsigned int index, const MultiType &arg) |
| Changes the default value of the argument with given index of the current executor (doesn't modify executors on deeper levels of the command-stack). More...
|
|
ConsoleCommandManipulator & | defaultValues (const MultiType &arg1) |
| Changes the default values of the current executor (doesn't modify executors on deeper levels of the command-stack). More...
|
|
ConsoleCommandManipulator & | defaultValues (const MultiType &arg1, const MultiType &arg2) |
| Changes the default values of the current executor (doesn't modify executors on deeper levels of the command-stack). More...
|
|
ConsoleCommandManipulator & | defaultValues (const MultiType &arg1, const MultiType &arg2, const MultiType &arg3) |
| Changes the default values of the current executor (doesn't modify executors on deeper levels of the command-stack). More...
|
|
ConsoleCommandManipulator & | defaultValues (const MultiType &arg1, const MultiType &arg2, const MultiType &arg3, const MultiType &arg4) |
| Changes the default values of the current executor (doesn't modify executors on deeper levels of the command-stack). More...
|
|
ConsoleCommandManipulator & | defaultValues (const MultiType &arg1, const MultiType &arg2, const MultiType &arg3, const MultiType &arg4, const MultiType &arg5) |
| Changes the default values of the current executor (doesn't modify executors on deeper levels of the command-stack). More...
|
|
ConsoleCommandManipulator & | hide () |
| Hides the command (can still be executed, but is not visible in the list of available commands). More...
|
|
ConsoleCommandManipulator & | inputConfiguredParam (int index) |
| Sets the input configured param to the given index. More...
|
|
ConsoleCommandManipulator & | keybindMode (KeybindMode::Value mode) |
| Changes the keybind mode of the command. More...
|
|
ConsoleCommandManipulator & | popFunction () |
| Removes the current function from the stack and restores the old state. If there's no other function on the stack, the command is deactivated. More...
|
|
ConsoleCommandManipulator & | popObject () |
| Removes the current object from the object-stack and restores the old object (or nullptr if there's no object left on the stack). More...
|
|
ConsoleCommandManipulator & | pushFunction () |
| Pushes a copy of the current Executor on the command-stack, that can be altered without changing the old Executor. More...
|
|
template<class F > |
ConsoleCommandManipulator & | pushFunction (F function, bool bForce=false) |
| Pushes a new function on the command-stack. More...
|
|
template<class F , class O > |
ConsoleCommandManipulator & | pushFunction (F function, O *object, bool bForce=false) |
| Pushes a new function on the command-stack. More...
|
|
ConsoleCommandManipulator & | pushFunction (const FunctorPtr &functor, bool bForce=false) |
| Pushes a new Functor on the command-stack. More...
|
|
ConsoleCommandManipulator & | pushFunction (const ExecutorPtr &executor, bool bForce=false) |
| Pushes a new Executor on the command-stack. More...
|
|
ConsoleCommandManipulator & | pushObject (void *object) |
| Pushes a new object on the object-stack. More...
|
|
ConsoleCommandManipulator & | resetFunction () |
| Sets the current function-pointer to nullptr, which also deactivates the command. More...
|
|
ConsoleCommandManipulator & | setActive (bool bActive) |
| Changes the activity of the command. More...
|
|
ConsoleCommandManipulator & | setAsInputCommand () |
| Defines the command to be an input command. More...
|
|
template<class F > |
ConsoleCommandManipulator & | setFunction (F function, bool bForce=false) |
| Changes the current function of the command. More...
|
|
template<class F , class O > |
ConsoleCommandManipulator & | setFunction (F function, O *object, bool bForce=false) |
| Changes the current function of the command. More...
|
|
ConsoleCommandManipulator & | setFunction (const FunctorPtr &functor, bool bForce=false) |
| Changes the current Functor of the command. More...
|
|
ConsoleCommandManipulator & | setFunction (const ExecutorPtr &executor, bool bForce=false) |
| Changes the current Executor of the command. More...
|
|
ConsoleCommandManipulator & | setHidden (bool bHidden) |
| Changes the visibility of the command. More...
|
|
ConsoleCommandManipulator & | setObject (void *object) |
| Changes the current object (used for member-functions). More...
|
|
ConsoleCommandManipulator & | show () |
| Makes the command visible. More...
|
|
Helper class that is used to manipulate console commands.
An instance of this class is returned if you call the ModifyConsoleCommand macro. This class provides an interface which wraps some functions of ConsoleCommand. It allows access to some private functions like setFunction() (that can't be called right after SetConsoleCommand()) but it also hides some functions that shouln't be called after the static declaration like addShortcut() or description().
- See also
- See ConsoleCommand.h for more information and examples.