C# Class Universe.Framework.ConsoleFramework.Commands

Afficher le fichier Open project: Virtual-Universe/Virtual-Universe

Méthodes publiques

Свойство Type Description
_ConsoleIsCaseSensitive bool

Méthodes publiques

Méthode Description
AddCommand ( string command, string commandHelp, string infomessage, CommandDelegate fn, bool requiresAScene, bool fireOnceForAllScenes ) : void

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

ContainsCommand ( string command ) : bool
FindNextOption ( string cmd ) : string[]
GetHelp ( string cmd ) : List

Get help for the given help string

Resolve ( string cmd ) : string[]

Method Details

AddCommand() public méthode

Add a command to those which can be invoked from the console.
public AddCommand ( string command, string commandHelp, string infomessage, CommandDelegate fn, bool requiresAScene, bool fireOnceForAllScenes ) : void
command string The string that will make the command execute
commandHelp string The message that will show the user how to use the command
infomessage string Any information about how the command works or what it does
fn CommandDelegate
requiresAScene bool Whether this command requires a scene to be fired
fireOnceForAllScenes bool Whether this command will only be executed once if there is no current scene
Résultat void

ContainsCommand() public méthode

public ContainsCommand ( string command ) : bool
command string
Résultat bool

FindNextOption() public méthode

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

GetHelp() public méthode

Get help for the given help string
public GetHelp ( string cmd ) : List
cmd string Parsed parts of the help string. If empty then general help is returned.
Résultat List

Resolve() public méthode

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

Property Details

_ConsoleIsCaseSensitive public_oe static_oe property

public static bool _ConsoleIsCaseSensitive
Résultat bool