special InstantiatingItemSlot for PrefabItems that contain an action at their root
the owner of the action is set on equip and input is forwarded from the slot to the action
https://adventure.softleitner.com/manual/item
|
virtual void | Input (InputAction.CallbackContext callbackContext) |
| sends input to the action on the current equipment instance
|
|
virtual void | StartAction () |
| starts the action on the current equipment instance
|
|
void | ForceAction (bool jumpStart=false) |
| starts the action on the current equipment instance
convenience method for inspector events that calls StartAction(bool, bool) with force=true
|
|
void | JumpStartAction (bool force=false) |
| starts the action on the current equipment instance
convenience method for inspector events that calls StartAction(bool, bool) with jumpStart=true
|
|
virtual void | StartAction (bool jumpStart, bool force) |
| starts the action on the current equipment instance
|
|
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
|
|
|
override void | equip (PrefabItem item) |
|
override void | unequip (PrefabItem item) |
|
override void | equip (PrefabItem item) |
|
override void | unequip (PrefabItem item) |
|
override void | applyVisibility () |
|
override void | onIsHiddenChanged () |
|
virtual bool | canEquip (T item) |
|
virtual void | equip (T item) |
|
virtual void | unequip (T item) |
|
|
Transform | Parent |
|
T | FallbackItem |
|
Transform | _instance |
|
T | EquippedItem [get] |
|
override Type | ItemType [get] |
|
◆ ForceAction()
void AdventureCore.ActionItemSlot.ForceAction |
( |
bool | jumpStart = false | ) |
|
starts the action on the current equipment instance
convenience method for inspector events that calls StartAction(bool, bool) with force=true
- Parameters
-
◆ Input()
virtual void AdventureCore.ActionItemSlot.Input |
( |
InputAction.CallbackContext | callbackContext | ) |
|
|
inlinevirtual |
sends input to the action on the current equipment instance
- Parameters
-
◆ JumpStartAction()
void AdventureCore.ActionItemSlot.JumpStartAction |
( |
bool | force = false | ) |
|
starts the action on the current equipment instance
convenience method for inspector events that calls StartAction(bool, bool) with jumpStart=true
- Parameters
-
◆ StartAction()
virtual void AdventureCore.ActionItemSlot.StartAction |
( |
bool | jumpStart, |
|
|
bool | force ) |
|
inlinevirtual |
starts the action on the current equipment instance
- Parameters
-