My Project
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ItemSlot Class Reference

Public Member Functions

bool Attach (Item it)
 
void Detach ()
 
bool Fits (Item it)
 
bool IsEmpty ()
 
void AssignEvents (UnityAction< ItemSlot > attached, UnityAction< ItemSlot > detached)
 
bool IsSlotType (int bits)
 
void TransformOnBone (Item it)
 
bool CanAttach (Item it)
 

Static Public Member Functions

static ItemSlotType GetSlotTypeWithout (ItemSlotType type, int bits)
 
static ItemSlot GetFirstSlotForType (ItemSlot[] slots, ItemSlotType type)
 
static int GetFirstSlotIndexForItem (ItemSlot[] slots, Item item, bool hasItem)
 
static int GetFirstSlotIndexForSlotType (ItemSlot[] slots, ItemSlotType slotType, bool hasItem)
 
static ItemSlot GetFirstSlotForItem (ItemSlot[] slots, Item item, bool hasItem)
 
static ItemSlot GetFirstSlotForSlotType (ItemSlot[] slots, ItemSlotType slotType, bool hasItem)
 

Public Attributes

ItemSlotType slotType
 
string boneName
 
Transform bone
 
Vector3 offset
 
Vector3 rotation
 
bool dropWhenDead
 
Item item
 
bool attachmentTransformed = false
 
Transform parent
 
ItemSlotEvent Attached
 
ItemSlotEvent Detached
 
List< Func< Item, bool > > canAttachChecker
 

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