Corgi Engine  v8.8
MoreMountains.InventoryEngine.InventoryDemoGameManager Class Reference

An example of a game manager, the only significant part being how we trigger in a single place the load of all inventories, in the Start method. More...

Inheritance diagram for MoreMountains.InventoryEngine.InventoryDemoGameManager:
MoreMountains.Tools.MMSingleton< InventoryDemoGameManager >

Protected Member Functions

override void Awake ()
 On awake, we initialize our instance. Make sure to call base.Awake() in override if you need awake. More...
 
virtual void Start ()
 On start, we trigger our load event, which will be caught by inventories so they try to load saved content More...
 
- Protected Member Functions inherited from MoreMountains.Tools.MMSingleton< InventoryDemoGameManager >
virtual void InitializeSingleton ()
 Initializes the singleton. More...
 

Static Protected Member Functions

static void InitializeStatics ()
 Statics initialization to support enter play modes More...
 

Properties

virtual InventoryDemoCharacter Player [get, protected set]
 
- Properties inherited from MoreMountains.Tools.MMSingleton< InventoryDemoGameManager >
static T Instance [get]
 Singleton design pattern More...
 

Additional Inherited Members

- Static Public Member Functions inherited from MoreMountains.Tools.MMSingleton< InventoryDemoGameManager >
static T TryGetInstance ()
 
- Static Public Attributes inherited from MoreMountains.Tools.MMSingleton< InventoryDemoGameManager >
static bool HasInstance
 
static T Current
 
- Static Protected Attributes inherited from MoreMountains.Tools.MMSingleton< InventoryDemoGameManager >
static T _instance
 

Detailed Description

An example of a game manager, the only significant part being how we trigger in a single place the load of all inventories, in the Start method.

Member Function Documentation

◆ Awake()

override void MoreMountains.InventoryEngine.InventoryDemoGameManager.Awake ( )
protectedvirtual

On awake, we initialize our instance. Make sure to call base.Awake() in override if you need awake.

Reimplemented from MoreMountains.Tools.MMSingleton< InventoryDemoGameManager >.

◆ InitializeStatics()

static void MoreMountains.InventoryEngine.InventoryDemoGameManager.InitializeStatics ( )
staticprotected

Statics initialization to support enter play modes

◆ Start()

virtual void MoreMountains.InventoryEngine.InventoryDemoGameManager.Start ( )
protectedvirtual

On start, we trigger our load event, which will be caught by inventories so they try to load saved content

Property Documentation

◆ Player

virtual InventoryDemoCharacter MoreMountains.InventoryEngine.InventoryDemoGameManager.Player
getprotected set

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