My Project
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ItemPickup Class Reference
Inheritance diagram for ItemPickup:

Public Member Functions

void WriteCreateData (BitPacker cd)
 
void ReadCreateData (BitPacker cd)
 
void Master_Drop (bool all)
 
void Master_Drop (Item item)
 
void Master_Drop (GameObject itemObj)
 
void Master_Pickup (GameObject itemObj, bool sync=true)
 
void RPC_Drop (ushort itemId)
 
void Pickup (Item item, ItemSlot specificSlot=null)
 
void Drop (Item item, bool destroyed=false)
 
bool SlotExists (int index)
 
bool HasFreeSlotForItem (Item item)
 
bool HasItem (Item item)
 
Item GetItemWithTag (string tag)
 
Item GetItemWithName (string name)
 
Item GetItem< T > ()
 
GetItemComponent< T > ()
 
void DestroyAllWithTag (string tag)
 

Static Public Member Functions

static void AddItemToBone (Item item, Transform bone)
 

Public Attributes

ItemEvent ItemPicked = new ItemEvent()
 
ItemEvent ItemDropped = new ItemEvent()
 
List< Itemitems = new List<Item>()
 
ItemSlot[] slots = new ItemSlot[1]
 
ItemSlot primarySlot
 
int primarySlotIndex
 

Member Function Documentation

◆ GetItem< T >()

Item ItemPickup.GetItem< T > ( )
inline
Type Constraints
T :Component 

◆ GetItemComponent< T >()

T ItemPickup.GetItemComponent< T > ( )
inline
Type Constraints
T :Component 

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