Changes between Version 5 and Version 6 of code/doc/CommandExecutor
- Timestamp:
- Oct 7, 2008, 6:39:56 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/doc/CommandExecutor
v5 v6 146 146 147 147 === evaluate() === 148 '''evaluate('''''string''''')''' parses ''string'' just as execute() but doesn't execute the command. Instead an instance of [wiki:CommandEvaluation] is returned, containing the command split up into a a pointer to the [wiki:ConsoleCommand] and a list of all arguments stored in [wiki:MultiType MultiTypes] already converted to the desired type. 149 150 With this you can separate between parsing and execution of a command which is useful if you need good performance (for example if a command is [wiki:KeyBinder bound] to a key and pressed 20 times per second). 148 151 149 152 == Illustration ==