CONTENT CONTRACT · VERSION 1
ResourceHarvestedEvent
An actor harvested a resource (a tree, rock or crop); the item reached its inventory.
Signature
{ actor: ActorRef, count: PositiveCount, item: ItemId, kind: "resource_harvested", player: (PlayerRef)?, position: Position }Fields
| Name | Type | Meaning |
|---|---|---|
actor | ActorRef | Acting actor (human- or AI-controlled). Length: 1…256; Pattern: ^[\s\S]+$ |
count | PositiveCount | Units harvested. Range: 1…2147483647; Unit: count |
item | ItemId | Harvested item. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: item |
kind | "resource_harvested" | Discriminant |
player | PlayerRef | Player controlling the actor; absent for AI-controlled actors. Length: 1…256; Pattern: ^[\s\S]+$ |
position | Position | Where the resource was harvested. |