C# Class RemoteTech.FlightComputer.Commands.CancelCommand

Inheritance: AbstractCommand
Afficher le fichier Open project: RemoteTechnologiesGroup/RemoteTech Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat bool

Pop() public méthode

public Pop ( FlightComputer computer ) : bool
computer FlightComputer
Résultat bool

ResetActive() public static méthode

public static ResetActive ( ) : CancelCommand
Résultat CancelCommand

Save() public méthode

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

WithCommand() public static méthode

public static WithCommand ( ICommand cmd ) : CancelCommand
cmd ICommand
Résultat CancelCommand