C# 클래스 Universe.Framework.ConsoleFramework.ConsolePluginCommand

Holder object for a new console plugin command Override the methods like Run and IsHelpfull (but the defaults might work ok.)
파일 보기 프로젝트 열기: Virtual-Universe/Virtual-Universe

공개 메소드들

메소드 설명
ConsolePluginCommand ( string command, ConsoleCommand dlg, string help ) : System

Construct a new ConsolePluginCommand for use with RegisterConsolePluginCommand(myCmd);

IsHelpfull ( string cmdWithParams ) : bool

return true if the ShowHelp(..) method might be helpful

Run ( string cmd, string cmdParams ) : void

Run the delegate the incoming string may contain the command, if so, it is chopped off the cmdParams[]

matchLength ( string cmdWithParams ) : int

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 @see OopenSim.RunPluginCommands It will only run the one with the highest number

메소드 상세

ConsolePluginCommand() 공개 메소드

Construct a new ConsolePluginCommand for use with RegisterConsolePluginCommand(myCmd);
public ConsolePluginCommand ( string command, ConsoleCommand dlg, string help ) : System
command string in the form of "showme new commands"
dlg ConsoleCommand command delegate used in running
help string the text displayed in "help showme new commands"
리턴 System

IsHelpfull() 공개 메소드

return true if the ShowHelp(..) method might be helpful
public IsHelpfull ( string cmdWithParams ) : bool
cmdWithParams string
리턴 bool

Run() 공개 메소드

Run the delegate the incoming string may contain the command, if so, it is chopped off the cmdParams[]
public Run ( string cmd, string cmdParams ) : void
cmd string
cmdParams string
리턴 void

matchLength() 공개 메소드

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 @see OopenSim.RunPluginCommands It will only run the one with the highest number
public matchLength ( string cmdWithParams ) : int
cmdWithParams string
리턴 int