Inventory Engine v4.2
Loading...
Searching...
No Matches
MoreMountains.InventoryEngine.EventTester Class Reference

This class shows examples of how you can listen to MMInventoryEvents, from any class. More...

Inherits MonoBehaviour, and MoreMountains.Tools.MMEventListener< T >.

Public Member Functions

virtual void OnMMEvent (MMInventoryEvent inventoryEvent)
 When we catch a MMInventoryEvent, we filter on its type and display info about the item used.
Public Member Functions inherited from MoreMountains.Tools.MMEventListener< T >
void OnMMEvent (T eventType)

Protected Member Functions

virtual void OnEnable ()
 On enable we start listening for MMInventoryEvents.
virtual void OnDisable ()
 On disable we stop listening for MMInventoryEvents.

Detailed Description

This class shows examples of how you can listen to MMInventoryEvents, from any class.

Member Function Documentation

◆ OnDisable()

virtual void MoreMountains.InventoryEngine.EventTester.OnDisable ( )
protectedvirtual

On disable we stop listening for MMInventoryEvents.

◆ OnEnable()

virtual void MoreMountains.InventoryEngine.EventTester.OnEnable ( )
protectedvirtual

On enable we start listening for MMInventoryEvents.

◆ OnMMEvent()

virtual void MoreMountains.InventoryEngine.EventTester.OnMMEvent ( MMInventoryEvent inventoryEvent)
virtual

When we catch a MMInventoryEvent, we filter on its type and display info about the item used.

Parameters
inventoryEvent

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