C# Class TagTool.Commands.CommandContext

A context which contains commands that can be executed on an object.
Mostra file Open project: TheGuardians/TagTool Class Usage Examples

Public Methods

Method Description
AddCommand ( Command command ) : void

Adds a command to the context.

CommandContext ( CommandContext parent, string name ) : System.Collections.Generic

Initializes a new instance of the CommandContext class.

GetCommand ( string name ) : Command

Looks up a command in the context by name. Commands inherited from parent contexts will be included.

Method Details

AddCommand() public method

Adds a command to the context.
public AddCommand ( Command command ) : void
command Command The command to add.
return void

CommandContext() public method

Initializes a new instance of the CommandContext class.
public CommandContext ( CommandContext parent, string name ) : System.Collections.Generic
parent CommandContext The parent context. Can be null if none.
name string The context's name.
return System.Collections.Generic

GetCommand() public method

Looks up a command in the context by name. Commands inherited from parent contexts will be included.
public GetCommand ( string name ) : Command
name string The name of the command to retrieve.
return Command