Loading...
Searching...
No Matches
AdventureCore.ItemSlotBase Class Referenceabstract

Detailed Description

non-generic base class for item slots, usually the generic ItemSlot<T> should be derived from

https://adventure.softleitner.com/manual/item

Inheritance diagram for AdventureCore.ItemSlotBase:
AdventureCore.ItemSlot< T > AdventureCore.ItemSlotProxy AdventureSouls.SoulsUsableSlots

Public Member Functions

virtual void Initialize (CharacterBase character)
 
virtual void EquipPrevious (bool clear=true)
 
virtual void EquipNext (bool clear=true)
 
virtual bool CanEquip (InventoryItem inventoryItem)
 
virtual void Equip (InventoryItem inventoryItem)
 
virtual void Clear ()
 
virtual void Show ()
 
virtual void Hide ()
 
virtual bool CanUse (int quantity=1)
 
virtual void Use (int quantity=1)
 

Public Attributes

string Key
 
ItemSlotCategory Category
 
int Index
 

Protected Member Functions

virtual void onEquippedInventoryItemChanged ()
 
virtual void onIsInUseChanged ()
 

Properties

virtual InventoryItem EquippedInventoryItem [get]
 
bool IsHidden [get]
 
virtual bool IsInUse [get, set]
 
Type ItemType [get]
 
CharacterBase Character [get]
 

Events

Action< bool > IsInUseChanged
 
Action< InventoryItemEquippedInventoryItemChanged