Skip to main content

Module equip

Module equip 

Source
Expand description

§Equipment system

Generic equipment types for equipping and unequipping items in slot-based inventories.

TypePurpose
EquipSlot<Id>Slot identifier with standard + custom variants
EquipmentSlots<I, S>Slot → item mapping with mutation methods
EquipErrorError conditions for equipment operations

Structs§

EquipmentSlots
A collection of equipment slots that tracks which item (if any) is equipped in each slot.

Enums§

EquipError
Error that can occur when equipping an item.
EquipSlot
Represents a slot where an item can be equipped.

Traits§

EquipProvider
Optional provider trait for games with an equipment system.