C# 클래스 Fungus.Block

상속: Fungus.Node
파일 보기 프로젝트 열기: snozbot/fungus 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
activeCommand Fungus.Command
executionCount int
executionInfoSet bool
executionState ExecutionState
jumpToCommandIndex int
previousActiveCommandIndex int

공개 메소드들

메소드 설명
Execute ( int commandIndex, System.Action onComplete = null ) : IEnumerator

A coroutine method that executes all commands in the Block. Only one running instance of each Block is permitted.

GetConnectedBlocks ( ) : List

Returns a list of all Blocks connected to this one.

GetExecutionCount ( ) : int

Returns the number of times this Block has executed.

GetFlowchart ( ) : Flowchart

Returns the parent Flowchart for this Block.

GetLabelIndex ( string labelKey ) : int

Returns the index of the Label command with matching key, or -1 if not found.

GetPreviousActiveCommandType ( ) : Type

Returns the type of the previously executing command.

IsExecuting ( ) : bool

Returns true if the Block is executing a command.

StartExecution ( ) : void

Start a coroutine which executes all commands in the Block. Only one running instance of each Block is permitted.

Stop ( ) : void

Stop executing commands in this Block.

UpdateIndentLevels ( ) : void

Recalculate the indent levels for all commands in the list.

보호된 메소드들

메소드 설명
Awake ( ) : void
SetExecutionInfo ( ) : void

Populate the command metadata used to control execution.

Update ( ) : void

메소드 상세

Awake() 보호된 메소드

protected Awake ( ) : void
리턴 void

Execute() 공개 메소드

A coroutine method that executes all commands in the Block. Only one running instance of each Block is permitted.
public Execute ( int commandIndex, System.Action onComplete = null ) : IEnumerator
commandIndex int Index of command to start execution at
onComplete System.Action Delegate function to call when execution completes
리턴 IEnumerator

GetConnectedBlocks() 공개 메소드

Returns a list of all Blocks connected to this one.
public GetConnectedBlocks ( ) : List
리턴 List

GetExecutionCount() 공개 메소드

Returns the number of times this Block has executed.
public GetExecutionCount ( ) : int
리턴 int

GetFlowchart() 공개 메소드

Returns the parent Flowchart for this Block.
public GetFlowchart ( ) : Flowchart
리턴 Flowchart

GetLabelIndex() 공개 메소드

Returns the index of the Label command with matching key, or -1 if not found.
public GetLabelIndex ( string labelKey ) : int
labelKey string
리턴 int

GetPreviousActiveCommandType() 공개 메소드

Returns the type of the previously executing command.
public GetPreviousActiveCommandType ( ) : Type
리턴 System.Type

IsExecuting() 공개 메소드

Returns true if the Block is executing a command.
public IsExecuting ( ) : bool
리턴 bool

SetExecutionInfo() 보호된 메소드

Populate the command metadata used to control execution.
protected SetExecutionInfo ( ) : void
리턴 void

StartExecution() 공개 메소드

Start a coroutine which executes all commands in the Block. Only one running instance of each Block is permitted.
public StartExecution ( ) : void
리턴 void

Stop() 공개 메소드

Stop executing commands in this Block.
public Stop ( ) : void
리턴 void

Update() 보호된 메소드

protected Update ( ) : void
리턴 void

UpdateIndentLevels() 공개 메소드

Recalculate the indent levels for all commands in the list.
public UpdateIndentLevels ( ) : void
리턴 void

프로퍼티 상세

activeCommand 보호되어 있는 프로퍼티

protected Command,Fungus activeCommand
리턴 Fungus.Command

executionCount 보호되어 있는 프로퍼티

protected int executionCount
리턴 int

executionInfoSet 보호되어 있는 프로퍼티

protected bool executionInfoSet
리턴 bool

executionState 보호되어 있는 프로퍼티

protected ExecutionState executionState
리턴 ExecutionState

jumpToCommandIndex 보호되어 있는 프로퍼티

protected int jumpToCommandIndex
리턴 int

previousActiveCommandIndex 보호되어 있는 프로퍼티

Index of last command executed before the current one. -1 indicates no previous command.
protected int previousActiveCommandIndex
리턴 int