EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

resource_harvested

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

NameTypeMeaning
actorActorRefActing actor (human- or AI-controlled).
Length: 1…256; Pattern: ^[\s\S]+$
countPositiveCountUnits harvested.
Range: 1…2147483647; Unit: count
itemItemIdHarvested 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
playerPlayerRefPlayer controlling the actor; absent for AI-controlled actors.
Length: 1…256; Pattern: ^[\s\S]+$
positionPositionWhere the resource was harvested.

Validated example

{
  "actor": "a1",
  "count": 1,
  "item": "core:perch",
  "kind": "resource_harvested",
  "player": "p1",
  "position": {
    "map": "m1",
    "x_mm": 8000,
    "y_mm": 0,
    "z_mm": 24000
  }
}