CONTENT CONTRACT · VERSION 1
EquipmentChangedEvent
The content of an equipment slot of an actor changed.
Signature
{ actor: ActorRef, item: (ItemId)?, kind: "equipment_changed", player: (PlayerRef)?, slot: EquipmentSlot }Fields
| Name | Type | Meaning |
|---|---|---|
actor | ActorRef | Acting actor (human- or AI-controlled). Length: 1…256; Pattern: ^[\s\S]+$ |
item | ItemId | Item now in the slot; absent when the slot is empty. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: item |
kind | "equipment_changed" | Discriminant |
player | PlayerRef | Player controlling the actor; absent for AI-controlled actors. Length: 1…256; Pattern: ^[\s\S]+$ |
slot | EquipmentSlot | Equipment slot that changed. |