Class SequentialFlow
- Namespace
- KSP.Game.Flow
- Assembly
- Assembly-CSharp.dll
public class SequentialFlow : MonoBehaviour
- Inheritance
-
SequentialFlow
- Extension Methods
-
Constructors
SequentialFlow()
Properties
Errors
public string[] Errors { get; }
Property Value
- string[]
FlowActionCount
public int FlowActionCount { get; }
Property Value
- int
FlowProgress
public float FlowProgress { get; }
Property Value
- float
FlowState
public FlowState FlowState { get; }
Property Value
- FlowState
Game
public GameInstance Game { get; }
Property Value
- GameInstance
HaltOnError
public bool HaltOnError { get; set; }
Property Value
- bool
Name
public virtual string Name { get; }
Property Value
- string
Methods
AddAction(FlowAction)
public void AddAction(FlowAction action)
Parameters
action FlowAction
ClearActions()
public void ClearActions()
GetCurrentAction()
public FlowAction GetCurrentAction()
Returns
- FlowAction
NextFlowAction()
protected void NextFlowAction()
OnActionReject(FlowAction, string)
protected void OnActionReject(FlowAction sender, string error)
Parameters
sender FlowAction
error string
OnActionResolve(FlowAction)
protected void OnActionResolve(FlowAction sender)
Parameters
sender FlowAction
ResetFlow()
protected void ResetFlow()
SetGameInstance(GameInstance)
public void SetGameInstance(GameInstance gameInstance)
Parameters
gameInstance GameInstance
StartFlow()
UpdateProgress()
protected void UpdateProgress()
Events
FlowError
public event EventHandler<string> FlowError
Event Type
- EventHandler<string>
FlowFinished
public event EventHandler FlowFinished
Event Type
- EventHandler
FlowUpdate
public event EventHandler<float> FlowUpdate
Event Type
- EventHandler<float>