TopDown Engine  v3.6
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 More...
 
InventorySlot Slot
 the slot involved in the event More...
 
string TargetInventoryName
 the name of the inventory where the event happened More...
 
InventoryItem EventItem
 the item involved in the event More...
 
int Quantity
 the quantity involved in the event More...
 
int Index
 the index inside the inventory at which the event happened More...
 
string PlayerID
 the unique ID of the player triggering this event More...
 

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()

static 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: