C# Класс Fusion.Core.Shell.Invoker

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AutoCompleteCommand Suggestion
AutoCompleteVariable Suggestion
FeedConfigs void
GetCommand Command
LongestCommon string
LongestCommon string

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

Метод Описание
AutoComplete ( string input ) : Suggestion

ExecuteQueue ( GameTime gameTime, CommandAffinity affinity, bool forceDelayed = false ) : void

Executes enqueued commands. Updates delayed commands.

Initialize ( Game game, Type types ) : void

Invoker ( Game game, CommandAffinity affinity ) : System

Creates instance of Invoker.

PurgeHistory ( ) : void

Purges all history.

Push ( string commandLine ) : Command

Parses and pushes command to the queue.

Push ( Command command ) : void

Parse given string and push parsed command to queue.

PushAndExecute ( string commandLine ) : object

Undo ( ) : void

Undo one command.

Приватные методы

Метод Описание
AutoCompleteCommand ( string input, string args, string commandName ) : Suggestion

AutoCompleteVariable ( string input, string args, ConfigVariable variable ) : Suggestion

FeedConfigs ( IEnumerable variables ) : void

GetCommand ( string name ) : Command

LongestCommon ( IEnumerable values ) : string

LongestCommon ( string a, string b ) : string

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

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

public AutoComplete ( string input ) : Suggestion
input string
Результат Suggestion

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

Executes enqueued commands. Updates delayed commands.
public ExecuteQueue ( GameTime gameTime, CommandAffinity affinity, bool forceDelayed = false ) : void
gameTime Fusion.Engine.Common.GameTime
affinity CommandAffinity
forceDelayed bool
Результат void

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

public Initialize ( Game game, Type types ) : void
game Game
types System.Type
Результат void

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

Creates instance of Invoker.
public Invoker ( Game game, CommandAffinity affinity ) : System
game Game Game instance
affinity CommandAffinity
Результат System

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

Purges all history.
public PurgeHistory ( ) : void
Результат void

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

Parses and pushes command to the queue.
public Push ( string commandLine ) : Command
commandLine string
Результат Command

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

Parse given string and push parsed command to queue.
public Push ( Command command ) : void
command Command
Результат void

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

public PushAndExecute ( string commandLine ) : object
commandLine string
Результат object

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

Undo one command.
public Undo ( ) : void
Результат void