-
Notifications
You must be signed in to change notification settings - Fork 4
CCommand
CCommand is a container class that stores command arguments, typically those from console commands or game chat.
Type: Reference type.
| Function | Description | | --- | --- | --- | | int ArgC() const | Gets the number of arguments. | | string GetCommandString() const | Gets the entire command as a string. | | string GetArgumentsString() const | Gets all arguments as a single string. | | string Arg(const int iIndex) const | Gets the argument by index. | | string opIndex(const int iIndex) const | Gets the argument by index. | | string FindArg(const string& in szArgument) const | Find a value for a given argument. If the argument does not exist or has no value, an empty string is returned. Otherwise, returns the value. | | int FindIntArg(const string& in szArgument, const int iDefault = 0) const | Find an int value for a given argument. Returns iDefault if no such argument exists, or no value exists for it. Otherwise, returns the value, converted to an int. |
