special slot that redirects to one of a number of other slots
the actual slot currently being used can be rotated through using NextSlot and PreviousSlot
https://adventure.softleitner.com/manual/item
|
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
|
|
virtual void | NextSlot () |
|
virtual void | PreviousSlot () |
|
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
|
|
|
ItemSlotBase | CurrentSlot [get] |
|
override InventoryItem | EquippedInventoryItem [get] |
|
override bool | IsInUse [get, set] |
|
override Type | ItemType [get] |
|
virtual InventoryItem | EquippedInventoryItem [get] |
|
bool | IsHidden [get] |
|
virtual bool | IsInUse [get, set] |
|
Type | ItemType [get] |
|
CharacterBase | Character [get] |
|
|
virtual InventoryItem | getPrevious (bool clear=true) |
|
virtual InventoryItem | getNext (bool clear=true) |
|
virtual void | onEquippedInventoryItemChanged () |
|
virtual void | onIsInUseChanged () |
|
virtual void | onIsHiddenChanged () |
|
Action< bool > | IsInUseChanged |
|
Action< bool > | IsHiddenChanged |
|
Action< InventoryItem > | EquippedInventoryItemChanged |
|
◆ CanUse()
override bool AdventureCore.ItemSlotProxy.CanUse |
( |
int | quantity = 1 | ) |
|
|
virtual |
checks if the equipped item can be used
- Parameters
-
quantity | how many of the item to use |
- Returns
- true if the equipped item can be used
Reimplemented from AdventureCore.ItemSlotBase.
◆ Clear()
override void AdventureCore.ItemSlotProxy.Clear |
( |
| ) |
|
|
virtual |
◆ Equip()
override void AdventureCore.ItemSlotProxy.Equip |
( |
InventoryItem | inventoryItem | ) |
|
|
virtual |
equips an inventory item(if another item is already equipped it is unequipped first)
- Parameters
-
inventoryItem | the inventory item to equip |
Reimplemented from AdventureCore.ItemSlotBase.
◆ Hide()
override void AdventureCore.ItemSlotProxy.Hide |
( |
| ) |
|
|
virtual |
◆ Initialize()
override void AdventureCore.ItemSlotProxy.Initialize |
( |
CharacterBase | character | ) |
|
|
inlinevirtual |
◆ Show()
override void AdventureCore.ItemSlotProxy.Show |
( |
| ) |
|
|
virtual |
◆ Use()
override void AdventureCore.ItemSlotProxy.Use |
( |
int | quantity = 1 | ) |
|
|
virtual |