GMS (Game Management Service) 1.0
Data driven Game Management system.
Loading...
Searching...
No Matches
GMS.GameInstance Class Reference

Singleton ServiceLocator Single point of contact for subManagers Initialization Holds the content Transforms for the subManager View elements. More...

Inheritance diagram for GMS.GameInstance:

Public Member Functions

bool TryEnqueueSubManager (GameManagerData data, SubManagerData subManagerData, out ISubManager subManager)
 Tries to add a new unique instance to the list of subManagers, will return false if it already exists or data was invalid.
 
bool TryEnqueueSubManagerForRemoval (SubManagerData subManagerData)
 Tries to remove an instance from the list of subManagers, will return false if it doesn't exist from Game Manager.
 

Static Public Member Functions

static bool TryGetSubManager< T > (out T subManager)
 Attempts to get an existing SubManager by type.
 

Properties

bool Initialized [get]
 Has Game Instance been initialized.
 
static GameInstance S [get]
 Singleton Access Property.
 

Detailed Description

Singleton ServiceLocator Single point of contact for subManagers Initialization Holds the content Transforms for the subManager View elements.

Member Function Documentation

◆ TryEnqueueSubManager()

bool GMS.GameInstance.TryEnqueueSubManager ( GameManagerData data,
SubManagerData subManagerData,
out ISubManager subManager )
inline

Tries to add a new unique instance to the list of subManagers, will return false if it already exists or data was invalid.

◆ TryEnqueueSubManagerForRemoval()

bool GMS.GameInstance.TryEnqueueSubManagerForRemoval ( SubManagerData subManagerData)
inline

Tries to remove an instance from the list of subManagers, will return false if it doesn't exist from Game Manager.

◆ TryGetSubManager< T >()

static bool GMS.GameInstance.TryGetSubManager< T > ( out T subManager)
inlinestatic

Attempts to get an existing SubManager by type.

Template Parameters
TType of the subManager
Returns
True if subManager is found and valid
Type Constraints
T :ISubManager 

Property Documentation

◆ Initialized

bool GMS.GameInstance.Initialized
get

Has Game Instance been initialized.

◆ S

GameInstance GMS.GameInstance.S
staticget

Singleton Access Property.


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