Class Equippable
Represents an equippable component that can be attached to items. Provides a wrapper around the game's native equippable system.
public class Equippable
- Inheritance
-
Equippable
- Inherited Members
- Extension Methods
Properties
CanInteractWhenEquipped
Gets or sets whether the player can interact with objects when this item is equipped.
public bool CanInteractWhenEquipped { get; set; }
Property Value
CanPickUpWhenEquipped
Gets or sets whether the player can pick up items when this item is equipped.
public bool CanPickUpWhenEquipped { get; set; }
Property Value
Methods
Equip(ItemInstance)
Called when this item is equipped by the player. Override this in derived classes to implement custom equip behavior.
public virtual void Equip(ItemInstance item)
Parameters
itemItemInstanceThe item instance being equipped.
Unequip()
Called when this item is unequipped by the player. Override this in derived classes to implement custom unequip behavior.
public virtual void Unequip()