Class ScriptableBattleStage
Represents the set of sub-states that make up a complete stage.
Namespace: AutoBattleFramework.BattleBehaviour
Assembly: cs.temp.dll.dll
Syntax
public class ScriptableBattleStage : ScriptableObject
Fields
stage
List of sub-states that make up a stage.
Declaration
public List<BattleState> stage
Field Value
Type | Description |
---|---|
List<BattleState> |
Methods
GetCurrentIndex()
Returns the current BattleState index.
Declaration
public int GetCurrentIndex()
Returns
Type | Description |
---|---|
Int32 | Current BattleState index. |
GetCurrentState()
Returns the current BattleState
Declaration
public BattleState GetCurrentState()
Returns
Type | Description |
---|---|
BattleState | Current BattleState |
InitializeBattleStage(Int32)
Initialize the variables of the stage.
Declaration
public void InitializeBattleStage(int currentStage)
Parameters
Type | Name | Description |
---|---|---|
Int32 | currentStage | Index of the current stage. Set to -1 if starting the stage, then call NextState() to start the first state. |
NextState()
Ends the current BattleState and starts the next one.
Declaration
public void NextState()
PreviousState()
Go to the previous Battle state.
Declaration
public void PreviousState()
ResetStage()
Go to the start of the current stage.
Declaration
public void ResetStage()