C# Class OpenSim.Framework.Console.Commands

Afficher le fichier Open project: N3X15/VoxelSim Class Usage Examples

Méthodes publiques

Méthode Description
AddCommand ( string module, bool shared, string command, string help, string longhelp, CommandDelegate fn ) : void

Add a command to those which can be invoked from the console.

AddCommand ( string module, bool shared, string command, string help, string longhelp, string descriptivehelp, CommandDelegate fn ) : void

Add a command to those which can be invoked from the console.

FindNextOption ( string cmd, bool term ) : string[]
FromXml ( XmlElement root, CommandDelegate fn ) : void
GetHelp ( string cmd ) : List

Get help for the given help string

GetXml ( XmlDocument doc ) : XmlElement
Resolve ( string cmd ) : string[]

Private Methods

Méthode Description
CollectHelp ( object>.Dictionary dict ) : List
CollectHelp ( List helpParts ) : List

See if we can find the requested command in order to display longer help

ProcessTreeLevel ( object>.Dictionary level, XmlElement xml, XmlDocument doc ) : void
ReadTreeLevel ( object>.Dictionary level, XmlNode node, CommandDelegate fn ) : void

Method Details

AddCommand() public méthode

Add a command to those which can be invoked from the console.
public AddCommand ( string module, bool shared, string command, string help, string longhelp, CommandDelegate fn ) : void
module string
shared bool
command string
help string
longhelp string
fn CommandDelegate
Résultat void

AddCommand() public méthode

Add a command to those which can be invoked from the console.
public AddCommand ( string module, bool shared, string command, string help, string longhelp, string descriptivehelp, CommandDelegate fn ) : void
module string
shared bool
command string
help string
longhelp string
descriptivehelp string
fn CommandDelegate
Résultat void

FindNextOption() public méthode

public FindNextOption ( string cmd, bool term ) : string[]
cmd string
term bool
Résultat string[]

FromXml() public méthode

public FromXml ( XmlElement root, CommandDelegate fn ) : void
root System.Xml.XmlElement
fn CommandDelegate
Résultat void

GetHelp() public méthode

Get help for the given help string
public GetHelp ( string cmd ) : List
cmd string
Résultat List

GetXml() public méthode

public GetXml ( XmlDocument doc ) : XmlElement
doc System.Xml.XmlDocument
Résultat System.Xml.XmlElement

Resolve() public méthode

public Resolve ( string cmd ) : string[]
cmd string
Résultat string[]