C# Class Universe.Framework.ConsoleFramework.Commands

Mostrar archivo Open project: Virtual-Universe/Virtual-Universe

Public Properties

Property Type Description
_ConsoleIsCaseSensitive bool

Public Methods

Method 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 method

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
return void

ContainsCommand() public method

public ContainsCommand ( string command ) : bool
command string
return bool

FindNextOption() public method

public FindNextOption ( string cmd ) : string[]
cmd string
return string[]

GetHelp() public method

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.
return List

Resolve() public method

public Resolve ( string cmd ) : string[]
cmd string
return string[]

Property Details

_ConsoleIsCaseSensitive public_oe static_oe property

public static bool _ConsoleIsCaseSensitive
return bool