Loading...
Searching...
No Matches
AdventureSouls.SoulsUsableSlots Class Reference

Detailed Description

special item slot proxy that rebinds input to the current usable slot when the slots behind the proxy are rotated through

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

Inheritance diagram for AdventureSouls.SoulsUsableSlots:
AdventureCore.ItemSlotProxy AdventureCore.ItemSlotBase

Public Member Functions

void BindInput (InputAction inputAction)
 
void UnbindInput (InputAction inputAction)
 
override void NextSlot ()
 
override void PreviousSlot ()
 
- Public Member Functions inherited from AdventureCore.ItemSlotProxy
override void Initialize (CharacterBase character)
 
override void Equip (InventoryItem inventoryItem)
 equips an inventory item(if another item is already equipped it is unequipped first)
 
override void Clear ()
 clears the slot of its currently equipped item
 
override void Show ()
 shows the slot if it was hidden before
 
override void Hide ()
 hides the slot
 
override bool CanUse (int quantity=1)
 checks if the equipped item can be used
 
override void Use (int quantity=1)
 uses the equipped item
 
- Public Member Functions inherited from AdventureCore.ItemSlotBase
virtual bool CanEquipPrevious (bool clear=true)
 checks if the slot can switch its equipped item to the previous one in its characters inventory
 
virtual bool EquipPrevious (bool clear=true)
 equips the previous item in its characters inventory
 
virtual bool CanEquipNext (bool clear=true)
 checks if the slot can switch its equipped item to the next one in its characters inventory
 
virtual bool EquipNext (bool clear=true)
 equips the next item in its characters inventory
 
virtual bool CanEquip (InventoryItem inventoryItem, bool clear=true)
 checks if an inventory item can be equipped
 
virtual bool CanClear ()
 checks whether the slot can be cleared of its equipped items
 

Properties

SoulsUsableSlot CurrentUsableSlot [get]
 
- Properties inherited from AdventureCore.ItemSlotProxy
ItemSlotBase CurrentSlot [get]
 
override InventoryItem EquippedInventoryItem [get]
 
override bool IsInUse [get, set]
 
override Type ItemType [get]
 
- Properties inherited from AdventureCore.ItemSlotBase
virtual InventoryItem EquippedInventoryItem [get]
 
bool IsHidden [get]
 
virtual bool IsInUse [get, set]
 
Type ItemType [get]
 
CharacterBase Character [get]
 

Additional Inherited Members

- Public Attributes inherited from AdventureCore.ItemSlotProxy
ItemSlotBase[] Slots
 
- Public Attributes inherited from AdventureCore.ItemSlotBase
string Key
 
ItemSlotCategory Category
 
int Index
 
- Protected Member Functions inherited from AdventureCore.ItemSlotBase
virtual InventoryItem getPrevious (bool clear=true)
 
virtual InventoryItem getNext (bool clear=true)
 
virtual void onEquippedInventoryItemChanged ()
 
virtual void onIsInUseChanged ()
 
virtual void onIsHiddenChanged ()
 
- Events inherited from AdventureCore.ItemSlotBase
Action< bool > IsInUseChanged
 
Action< bool > IsHiddenChanged
 
Action< InventoryItemEquippedInventoryItemChanged
 

Member Function Documentation

◆ NextSlot()

override void AdventureSouls.SoulsUsableSlots.NextSlot ( )
inlinevirtual

Reimplemented from AdventureCore.ItemSlotProxy.

◆ PreviousSlot()

override void AdventureSouls.SoulsUsableSlots.PreviousSlot ( )
inlinevirtual

Reimplemented from AdventureCore.ItemSlotProxy.