C# Class RemoteTech.FlightComputer.Commands.CancelCommand

Inheritance: AbstractCommand
Exibir arquivo Open project: RemoteTechnologiesGroup/RemoteTech Class Usage Examples

Public Methods

Method Description
Load ( ConfigNode n, FlightComputer computer ) : bool

Load the saved CancelCommand and find the element to cancel, based on the saved queue position

Pop ( FlightComputer computer ) : bool
ResetActive ( ) : CancelCommand
Save ( ConfigNode n, FlightComputer computer ) : void

Saves the queue index for this command to the persist

WithCommand ( ICommand cmd ) : CancelCommand

Private Methods

Method Description
cancelActiveCommand ( System.Guid cmdGuid, FlightComputer computer ) : bool

Cancels the current active command.

cancelQueuedCommand ( System.Guid cmdGuid, FlightComputer computer ) : bool

Cancels a queued command by it's guid

Method Details

Load() public method

Load the saved CancelCommand and find the element to cancel, based on the saved queue position
public Load ( ConfigNode n, FlightComputer computer ) : bool
n System.ConfigNode
computer FlightComputer
return bool

Pop() public method

public Pop ( FlightComputer computer ) : bool
computer FlightComputer
return bool

ResetActive() public static method

public static ResetActive ( ) : CancelCommand
return CancelCommand

Save() public method

Saves the queue index for this command to the persist
public Save ( ConfigNode n, FlightComputer computer ) : void
n System.ConfigNode
computer FlightComputer
return void

WithCommand() public static method

public static WithCommand ( ICommand cmd ) : CancelCommand
cmd ICommand
return CancelCommand