Loading...
Searching...
No Matches
AdventureHero.HeroEquipmentSlot Class Reference

Detailed Description

item slot for equipment in the hero demo(bombs, grapple hook, ...)
instantiates the action prefab that hero equipment items define when equipped
overrides the regular usage mechanism to start that action instead

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

Inheritance diagram for AdventureHero.HeroEquipmentSlot:
AdventureCore.ItemSlot< HeroEquipmentItem >

Public Member Functions

virtual void Input (InputAction.CallbackContext callbackContext)
 
override bool CanUse (int quantity=1)
 
override void Use (int quantity=1)
 
- Public Member Functions inherited from AdventureCore.ItemSlot< HeroEquipmentItem >
override void Initialize (CharacterBase character)
 
override bool CanEquip (InventoryItem inventoryItem, bool clear=true)
 checks if an inventory item can be equipped
 
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
 

Protected Member Functions

override void equip (HeroEquipmentItem item)
 
override void unequip (HeroEquipmentItem item)
 
- Protected Member Functions inherited from AdventureCore.ItemSlot< HeroEquipmentItem >
override void onIsHiddenChanged ()
 
virtual bool canEquip (T item)
 
virtual void equip (T item)
 
virtual void unequip (T item)
 
virtual void applyVisibility ()
 

Additional Inherited Members

- Public Attributes inherited from AdventureCore.ItemSlot< HeroEquipmentItem >
FallbackItem
 
- Properties inherited from AdventureCore.ItemSlot< HeroEquipmentItem >
EquippedItem [get]
 
override Type ItemType [get]