[This is preliminary documentation and is subject to change.]
The Command type exposes the following methods.
Methods
| Member | Description | |
|---|---|---|
| Clone()()()() | Creates a copy of this command.
Use the copy constructor instead of this, if possible. | |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Next()()()() | Returns the next command argument.
A single "argument" is either a word that ends with whitespace,
or several words in double quotes (""). | |
| NextAll()()()() | Returns the rest of command's text, from current offset to the end of string.
If there is nothing to return (i.e. if string ends at the current offset),
returns empty string. | |
| NextBlock(Player) | ||
| NextBlockWithParam(Player, Int32%) | ||
| NextInt(Int32%) | Returns the next command argument, parsed as an integer. | |
| Rewind()()()() | Resets the argument offset.
After calling Rewind, arguments can be read from the beginning again. | |
| ToString()()()() | (Overrides Object..::..ToString()()()().) |