Class StateManager
A simple state manager class, driven by events
Assembly: Assembly-CSharp.dll
Syntax
public class StateManager
Constructors
|
Improve this Doc
View Source
StateManager(StateManager.StateTypes)
Declaration
public StateManager(StateManager.StateTypes startState = StateManager.StateTypes.None)
Parameters
Fields
|
Improve this Doc
View Source
OnStartNewGame
Declaration
public static EventHandler OnStartNewGame
Field Value
Properties
|
Improve this Doc
View Source
CurrentState
Declaration
public StateManager.StateTypes CurrentState { get; }
Property Value
|
Improve this Doc
View Source
GameInProgress
Declaration
public bool GameInProgress { get; }
Property Value
|
Improve this Doc
View Source
LastState
Declaration
public StateManager.StateTypes LastState { get; }
Property Value
Methods
|
Improve this Doc
View Source
ChangeState(StateManager.StateTypes)
Changes state to specified state
Declaration
public bool ChangeState(StateManager.StateTypes nextState)
Parameters
Returns
|
Improve this Doc
View Source
PlayerDeath_OnPlayerDeathHandler(Object, EventArgs)
Declaration
public void PlayerDeath_OnPlayerDeathHandler(object sender, EventArgs e)
Parameters
|
Improve this Doc
View Source
SaveLoadManager_OnLoadHandler(SaveData_v1)
Declaration
public void SaveLoadManager_OnLoadHandler(SaveData_v1 saveData)
Parameters
|
Improve this Doc
View Source
StartGameBehaviour_OnStartGameHandler(Object, EventArgs)
Declaration
public void StartGameBehaviour_OnStartGameHandler(object sender, EventArgs e)
Parameters
|
Improve this Doc
View Source
StartGameBehaviour_OnStartMenuHandler(Object, EventArgs)
Declaration
public void StartGameBehaviour_OnStartMenuHandler(object sender, EventArgs e)
Parameters
|
Improve this Doc
View Source
UIManager_OnWindowChangeHandler(Object, EventArgs)
Declaration
public void UIManager_OnWindowChangeHandler(object sender, EventArgs e)
Parameters
Events
|
Improve this Doc
View Source
OnStateChange
Declaration
public static event StateManager.StateChange OnStateChange
Event Type