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)
 
override void Equip (InventoryItem inventoryItem)
 
override void Clear ()
 
override void Show ()
 
override void Hide ()
 

Protected Member Functions

override void equip (HeroEquipmentItem item)
 
override void unequip (HeroEquipmentItem item)
 
- Protected Member Functions inherited from AdventureCore.ItemSlot< HeroEquipmentItem >
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]