C# Класс RemoteTech.FlightComputer.Commands.CancelCommand

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

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

Метод Описание
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

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

Метод Описание
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

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

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

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
Результат bool

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

public Pop ( FlightComputer computer ) : bool
computer FlightComputer
Результат bool

ResetActive() публичный статический Метод

public static ResetActive ( ) : CancelCommand
Результат CancelCommand

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

Saves the queue index for this command to the persist
public Save ( ConfigNode n, FlightComputer computer ) : void
n System.ConfigNode
computer FlightComputer
Результат void

WithCommand() публичный статический Метод

public static WithCommand ( ICommand cmd ) : CancelCommand
cmd ICommand
Результат CancelCommand