C# Класс WaveEngine.Components.GameActions.GameAction

Represent a Game Action to perform something
Наследование: SerializableObject, IGameAction
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
IsSkippable bool

Private Properties

Свойство Тип Описание
OnParentComplete void

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

Метод Описание
Cancel ( ) : void

Cancels this instance.

Run ( ) : void

Runs this instance.

ToString ( ) : string

Returns a System.String that represents this instance.

TrySkip ( ) : bool

Skips this instance.

Защищенные методы

Метод Описание
GameAction ( IGameAction parent, string taskName ) : System

Initializes a new instance of the GameAction class.

GameAction ( string name, Scene scene = null ) : System

Initializes a new instance of the GameAction class.

PerformCancel ( ) : void

Notifies the cancelled.

PerformCompleted ( ) : void

Notifies the completed.

PerformRun ( ) : void

Ons the run.

PerformSkip ( ) : bool

Notifies the skip.

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

Метод Описание
OnParentComplete ( IGameAction parent ) : void

Parent action is completed

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

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

Cancels this instance.
public Cancel ( ) : void
Результат void

GameAction() защищенный Метод

Initializes a new instance of the GameAction class.
parent task cannot be null. if is a root task, use the other constructor
protected GameAction ( IGameAction parent, string taskName ) : System
parent IGameAction The parent.
taskName string Name of the task.
Результат System

GameAction() защищенный Метод

Initializes a new instance of the GameAction class.
protected GameAction ( string name, Scene scene = null ) : System
name string Name of the game action.
scene Scene The scene
Результат System

PerformCancel() защищенный Метод

Notifies the cancelled.
protected PerformCancel ( ) : void
Результат void

PerformCompleted() защищенный Метод

Notifies the completed.
protected PerformCompleted ( ) : void
Результат void

PerformRun() защищенный абстрактный Метод

Ons the run.
protected abstract PerformRun ( ) : void
Результат void

PerformSkip() защищенный Метод

Notifies the skip.
protected PerformSkip ( ) : bool
Результат bool

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

Runs this instance.
When the action state is not correct
public Run ( ) : void
Результат void

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

Returns a System.String that represents this instance.
public ToString ( ) : string
Результат string

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

Skips this instance.
When the action state is not correct
public TrySkip ( ) : bool
Результат bool

Описание свойств

IsSkippable публичное свойство

The skippable
public bool IsSkippable
Результат bool