C# Class Fusion.Core.Shell.Invoker

Mostrar archivo Open project: demiurghg/FusionEngine Class Usage Examples

Private Properties

Property Type Description
AutoCompleteCommand Suggestion
AutoCompleteVariable Suggestion
FeedConfigs void
GetCommand Command
LongestCommon string
LongestCommon string

Public Methods

Method Description
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.

Private Methods

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

Method Details

AutoComplete() public method

public AutoComplete ( string input ) : Suggestion
input string
return Suggestion

ExecuteQueue() public method

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

Initialize() public method

public Initialize ( Game game, Type types ) : void
game Game
types System.Type
return void

Invoker() public method

Creates instance of Invoker.
public Invoker ( Game game, CommandAffinity affinity ) : System
game Game Game instance
affinity CommandAffinity
return System

PurgeHistory() public method

Purges all history.
public PurgeHistory ( ) : void
return void

Push() public method

Parses and pushes command to the queue.
public Push ( string commandLine ) : Command
commandLine string
return Command

Push() public method

Parse given string and push parsed command to queue.
public Push ( Command command ) : void
command Command
return void

PushAndExecute() public method

public PushAndExecute ( string commandLine ) : object
commandLine string
return object

Undo() public method

Undo one command.
public Undo ( ) : void
return void