Show / Hide Table of Contents

Class StateManager

A simple state manager class, driven by events

Inheritance
Object
StateManager
Namespace: DaggerfallWorkshop.Game
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
Type Name Description
StateManager.StateTypes startState

Fields

| Improve this Doc View Source

OnStartNewGame

Declaration
public static EventHandler OnStartNewGame
Field Value
Type Description
EventHandler

Properties

| Improve this Doc View Source

CurrentState

Declaration
public StateManager.StateTypes CurrentState { get; }
Property Value
Type Description
StateManager.StateTypes
| Improve this Doc View Source

GameInProgress

Declaration
public bool GameInProgress { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

LastState

Declaration
public StateManager.StateTypes LastState { get; }
Property Value
Type Description
StateManager.StateTypes

Methods

| Improve this Doc View Source

ChangeState(StateManager.StateTypes)

Changes state to specified state

Declaration
public bool ChangeState(StateManager.StateTypes nextState)
Parameters
Type Name Description
StateManager.StateTypes nextState

desired state

Returns
Type Description
Boolean
| Improve this Doc View Source

PlayerDeath_OnPlayerDeathHandler(Object, EventArgs)

Declaration
public void PlayerDeath_OnPlayerDeathHandler(object sender, EventArgs e)
Parameters
Type Name Description
Object sender
EventArgs e
| Improve this Doc View Source

SaveLoadManager_OnLoadHandler(SaveData_v1)

Declaration
public void SaveLoadManager_OnLoadHandler(SaveData_v1 saveData)
Parameters
Type Name Description
SaveData_v1 saveData
| Improve this Doc View Source

StartGameBehaviour_OnStartGameHandler(Object, EventArgs)

Declaration
public void StartGameBehaviour_OnStartGameHandler(object sender, EventArgs e)
Parameters
Type Name Description
Object sender
EventArgs e
| Improve this Doc View Source

StartGameBehaviour_OnStartMenuHandler(Object, EventArgs)

Declaration
public void StartGameBehaviour_OnStartMenuHandler(object sender, EventArgs e)
Parameters
Type Name Description
Object sender
EventArgs e
| Improve this Doc View Source

UIManager_OnWindowChangeHandler(Object, EventArgs)

Declaration
public void UIManager_OnWindowChangeHandler(object sender, EventArgs e)
Parameters
Type Name Description
Object sender
EventArgs e

Events

| Improve this Doc View Source

OnStateChange

Declaration
public static event StateManager.StateChange OnStateChange
Event Type
Type Description
StateManager.StateChange
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX