All Classes Namespaces Functions Variables Enumerations Enumerator Properties
plyGame.EquipmentSlots Class Reference

Items are things that characters can pick up and use. Some can also be 'equipped' and this class handles that for the object it is on. More...

Inherits MonoBehaviour, and plyGame.IPersistable.

Public Member Functions

void Save (string key)
 
void Load (string key)
 
void DeleteSaveData (string key)
 
void DisablePersistence ()
 
bool EquipItem (Item it, bool visualEquipFailSilent, ItemBag.ItemDropOption dropOpt)
 
bool EquipItem (Item it, string toEquipSlot, bool visualEquipFailSilent, ItemBag.ItemDropOption dropOpt)
 
bool EquipItem (Item it, int toEquipSlotIdx, bool visualEquipFailSilent, ItemBag.ItemDropOption dropOpt)
 
bool UnEquipItem (string equipSlot, ItemBag.ItemDropOption dropOpt)
 
bool UnEquipItem (int slot, ItemBag.ItemDropOption dropOpt)
 
Item ItemInSlot (int slot)
 
Item ItemInSlot (string slotName)
 

Public Attributes

bool persistenceOn = true
 

Protected Member Functions

void Awake ()
 
void Start ()
 

Properties

List< EquippedItem > items [get, set]
 

Detailed Description

Items are things that characters can pick up and use. Some can also be 'equipped' and this class handles that for the object it is on.