TopDown Engine v4.5
Loading...
Searching...
No Matches
MoreMountains.InventoryEngine.MMInventoryEvent Struct Reference

Inventory events are used throughout the Inventory Engine to let other interested classes know that something happened to an inventory. More...

Public Member Functions

 MMInventoryEvent (MMInventoryEventType eventType, InventorySlot slot, string targetInventoryName, InventoryItem eventItem, int quantity, int index, string playerID)

Static Public Member Functions

static void Trigger (MMInventoryEventType eventType, InventorySlot slot, string targetInventoryName, InventoryItem eventItem, int quantity, int index, string playerID)

Public Attributes

MMInventoryEventType InventoryEventType
 the type of event
InventorySlot Slot
 the slot involved in the event
string TargetInventoryName
 the name of the inventory where the event happened
InventoryItem EventItem
 the item involved in the event
int Quantity
 the quantity involved in the event
int Index
 the index inside the inventory at which the event happened
string PlayerID
 the unique ID of the player triggering this event

Static Public Attributes

static MMInventoryEvent e

Detailed Description

Inventory events are used throughout the Inventory Engine to let other interested classes know that something happened to an inventory.

Constructor & Destructor Documentation

◆ MMInventoryEvent()

MoreMountains.InventoryEngine.MMInventoryEvent.MMInventoryEvent ( MMInventoryEventType eventType,
InventorySlot slot,
string targetInventoryName,
InventoryItem eventItem,
int quantity,
int index,
string playerID )

Member Function Documentation

◆ Trigger()

void MoreMountains.InventoryEngine.MMInventoryEvent.Trigger ( MMInventoryEventType eventType,
InventorySlot slot,
string targetInventoryName,
InventoryItem eventItem,
int quantity,
int index,
string playerID )
static

Member Data Documentation

◆ e

MMInventoryEvent MoreMountains.InventoryEngine.MMInventoryEvent.e
static

◆ EventItem

InventoryItem MoreMountains.InventoryEngine.MMInventoryEvent.EventItem

the item involved in the event

◆ Index

int MoreMountains.InventoryEngine.MMInventoryEvent.Index

the index inside the inventory at which the event happened

◆ InventoryEventType

MMInventoryEventType MoreMountains.InventoryEngine.MMInventoryEvent.InventoryEventType

the type of event

◆ PlayerID

string MoreMountains.InventoryEngine.MMInventoryEvent.PlayerID

the unique ID of the player triggering this event

◆ Quantity

int MoreMountains.InventoryEngine.MMInventoryEvent.Quantity

the quantity involved in the event

◆ Slot

InventorySlot MoreMountains.InventoryEngine.MMInventoryEvent.Slot

the slot involved in the event

◆ TargetInventoryName

string MoreMountains.InventoryEngine.MMInventoryEvent.TargetInventoryName

the name of the inventory where the event happened


The documentation for this struct was generated from the following file:
  • H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/ThirdParty/MoreMountains/InventoryEngine/InventoryEngine/Scripts/Core/InventoryEvents.cs