diff options
author | Justin Clark-Casey (justincc) | 2014-07-18 22:27:39 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-07-18 22:27:39 +0100 |
commit | 9be935ac6d74fd3b8c0c95058a575e400dd916a4 (patch) | |
tree | e3fb5cc9f75bb555f879dcfda5a496eaf4a2594b /OpenSim/Framework/ICommandConsole.cs | |
parent | refactor: slightly adjust some code in ODECharacter.Move() to eliminate a con... (diff) | |
download | opensim-SC-9be935ac6d74fd3b8c0c95058a575e400dd916a4.zip opensim-SC-9be935ac6d74fd3b8c0c95058a575e400dd916a4.tar.gz opensim-SC-9be935ac6d74fd3b8c0c95058a575e400dd916a4.tar.bz2 opensim-SC-9be935ac6d74fd3b8c0c95058a575e400dd916a4.tar.xz |
Add ICommands.HasCommand() method so that we can detect whether a command has already been registered without needing to also run it
Diffstat (limited to 'OpenSim/Framework/ICommandConsole.cs')
-rw-r--r-- | OpenSim/Framework/ICommandConsole.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Framework/ICommandConsole.cs b/OpenSim/Framework/ICommandConsole.cs index a6573f8..c6c6d40 100644 --- a/OpenSim/Framework/ICommandConsole.cs +++ b/OpenSim/Framework/ICommandConsole.cs | |||
@@ -67,9 +67,11 @@ namespace OpenSim.Framework | |||
67 | string help, string longhelp, string descriptivehelp, | 67 | string help, string longhelp, string descriptivehelp, |
68 | CommandDelegate fn); | 68 | CommandDelegate fn); |
69 | 69 | ||
70 | string[] FindNextOption(string[] cmd, bool term); | 70 | bool HasCommand(string command); |
71 | 71 | ||
72 | string[] Resolve(string[] cmd); | 72 | string[] FindNextOption(string[] command, bool term); |
73 | |||
74 | string[] Resolve(string[] command); | ||
73 | 75 | ||
74 | XmlElement GetXml(XmlDocument doc); | 76 | XmlElement GetXml(XmlDocument doc); |
75 | } | 77 | } |