C# Класс Fungus.Block

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

Защищенные свойства (Protected)

Свойство Тип Описание
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