CONTENT CONTRACT · VERSION 1
InventoryChangedEvent
The inventory of an actor changed by a committed delta of one item.
Signature
{ actor: ActorRef, delta: SignedInt, item: ItemId, kind: "inventory_changed", player: (PlayerRef)? }Fields
| Name | Type | Meaning |
|---|---|---|
actor | ActorRef | Acting actor (human- or AI-controlled). Length: 1…256; Pattern: ^[\s\S]+$ |
delta | SignedInt | Committed change of the count, never zero. Range: -9007199254740991…9007199254740991; Unit: integer |
item | ItemId | Item whose count changed. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: item |
kind | "inventory_changed" | Discriminant |
player | PlayerRef | Player controlling the actor; absent for AI-controlled actors. Length: 1…256; Pattern: ^[\s\S]+$ |