C# Класс Universe.Framework.ConsoleFramework.Commands

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
_ConsoleIsCaseSensitive bool

Открытые методы

Метод Описание
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[]

Описание методов

AddCommand() публичный Метод

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
Результат void

ContainsCommand() публичный Метод

public ContainsCommand ( string command ) : bool
command string
Результат bool

FindNextOption() публичный Метод

public FindNextOption ( string cmd ) : string[]
cmd string
Результат string[]

GetHelp() публичный Метод

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.
Результат List

Resolve() публичный Метод

public Resolve ( string cmd ) : string[]
cmd string
Результат string[]

Описание свойств

_ConsoleIsCaseSensitive публичное статическое свойство

public static bool _ConsoleIsCaseSensitive
Результат bool