C# 클래스 WaveEngine.Components.GameActions.GameAction

Represent a Game Action to perform something
상속: SerializableObject, IGameAction
파일 보기 프로젝트 열기: WaveEngine/Components

공개 프로퍼티들

프로퍼티 타입 설명
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