3D Dungeon Crawler
Loading...
Searching...
No Matches
InventorySlot Class Reference
Inheritance diagram for InventorySlot:

Classes

class  OnItemDroppedEventArgs
 

Public Member Functions

void Select ()
 
void Deselect ()
 
void SlotChanged (InventoryItem item)
 
void OnDrop (PointerEventData eventData)
 

Public Attributes

InventoryItemType itemType = InventoryItemType.None
 
PlayerEquipment playerEquipment
 
Image image
 
Color selectedHighlightColor
 
Color notSelectedColor
 

Events

EventHandler< OnItemDroppedEventArgsOnItemDropped
 

Member Function Documentation

◆ Deselect()

void InventorySlot.Deselect ( )

◆ OnDrop()

void InventorySlot.OnDrop ( PointerEventData eventData)

◆ Select()

void InventorySlot.Select ( )

◆ SlotChanged()

void InventorySlot.SlotChanged ( InventoryItem item)

Member Data Documentation

◆ image

Image InventorySlot.image

◆ itemType

InventoryItemType InventorySlot.itemType = InventoryItemType.None

◆ notSelectedColor

Color InventorySlot.notSelectedColor

◆ playerEquipment

PlayerEquipment InventorySlot.playerEquipment

◆ selectedHighlightColor

Color InventorySlot.selectedHighlightColor

Event Documentation

◆ OnItemDropped

EventHandler<OnItemDroppedEventArgs> InventorySlot.OnItemDropped

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