OpenSim
|
Holder object for a new console plugin command More...
Public Member Functions | |
ConsolePluginCommand (string command, ConsoleCommand dlg, string help) | |
Construct a new ConsolePluginCommand More... | |
int | matchLength (string cmdWithParams) |
Returns the match length this command has upon the 'cmdWithParams' At least a higher number for "show plugin status" then "show" would return This is used to have multi length command verbs More... | |
void | Run (string cmd, string[] cmdParams) |
Run the delegate the incomming string may contain the command, if so, it is chopped off the cmdParams[] More... | |
void | ShowHelp (ConsoleBase console) |
Shows help information on the console's Notice method More... | |
bool | IsHelpfull (string cmdWithParams) |
return true if the ShowHelp(..) method might be helpfull More... | |
Holder object for a new console plugin command
Override the methods like Run and IsHelpfull (but the defaults might work ok.)
Definition at line 39 of file ConsolePluginCommand.cs.
|
inline |
Construct a new ConsolePluginCommand
for use with OpenSim.RegisterConsolePluginCommand(myCmd);
command | in the form of "showme new commands" |
dlg | ommand delegate used in running |
help | the text displayed in "help showme new commands" |
Definition at line 63 of file ConsolePluginCommand.cs.
|
inline |
return true if the ShowHelp(..) method might be helpfull
Definition at line 133 of file ConsolePluginCommand.cs.
|
inline |
Returns the match length this command has upon the 'cmdWithParams' At least a higher number for "show plugin status" then "show" would return This is used to have multi length command verbs
Definition at line 79 of file ConsolePluginCommand.cs.
|
inline |
Run the delegate the incomming string may contain the command, if so, it is chopped off the cmdParams[]
Definition at line 95 of file ConsolePluginCommand.cs.
|
inline |
Shows help information on the console's Notice method
Definition at line 125 of file ConsolePluginCommand.cs.