Loading...
Searching...
No Matches
AdventureCore.StateManager Class Reference

Detailed Description

simple state manager that acts through unity events

https://adventure.softleitner.com/manual/utilities

Inheritance diagram for AdventureCore.StateManager:

Classes

class  StateEntry
 
class  StateOverride
 
class  TransitionEntry
 

Public Member Functions

void StartState (string state)
 
void StartOverride (string state)
 
void StartOverride (string state, int priority)
 
void SetState (string state)
 
void SetOverride (string state)
 
void SetOverride (string state, int priority)
 
void ResetOverride ()
 
void ResetOverride (int priority)
 
StateEntry GetStateEntry (string key)
 
TransitionEntry GetTransitionEntry (string from, string to)
 
void OnToggle (UnityEngine.InputSystem.InputAction.CallbackContext callbackContext)
 
void Toggle ()
 

Static Public Member Functions

static StateManager GetManager (string key)
 

Public Attributes

string Key
 
StateEntry[] States
 
TransitionEntry[] Transitions
 
string State
 
StateOverride[] Overrides
 
UnityEvent Starting
 
UnityEvent< string > StateChanged
 

Static Public Attributes

static StateManager Main
 
static Dictionary< string, StateManagerManagers = new Dictionary<string, StateManager>()
 

Properties

bool IsInitializing [get]
 
StateEntry CurrentState [get]