Corgi Engine v9.4
Loading...
Searching...
No Matches
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< T >

Protected Member Functions

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

Static Protected Member Functions

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

Properties

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

Additional Inherited Members

Static Public Member Functions inherited from MoreMountains.Tools.MMSingleton< T >
static T TryGetInstance ()
Static Protected Attributes inherited from MoreMountains.Tools.MMSingleton< T >
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< T >.

◆ InitializeStatics()

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: