Documentation for the Unity C# Library
Loading...
Searching...
No Matches
PixoVR.Event.StatesService Class Reference

Logic for saving and unloading states during project execution. More...

Static Public Member Functions

static T GetState< T > (bool isCreateInstance=false)
 
static void SaveState< T > (T data)
 

Static Private Attributes

static readonly Dictionary< Type, object > _states = new Dictionary<Type, object>()
 

Detailed Description

Logic for saving and unloading states during project execution.

Definition at line 12 of file StatesService.cs.

Member Function Documentation

◆ GetState< T >()

static T PixoVR.Event.StatesService.GetState< T > ( bool isCreateInstance = false)
inlinestatic
Type Constraints
T :class 
T :new() 

Definition at line 29 of file StatesService.cs.

◆ SaveState< T >()

static void PixoVR.Event.StatesService.SaveState< T > ( T data)
inlinestatic

Definition at line 16 of file StatesService.cs.

Member Data Documentation

◆ _states

readonly Dictionary<Type, object> PixoVR.Event.StatesService._states = new Dictionary<Type, object>()
staticprivate

Definition at line 14 of file StatesService.cs.


The documentation for this class was generated from the following file: