CONTENT CONTRACT · VERSION 1
InteractedEvent
An actor interacted with a target that offers an interaction.
Signature
{ actor: ActorRef, definition: ContentId, kind: "interacted", player: (PlayerRef)?, target: ActorRef }Fields
| Name | Type | Meaning |
|---|---|---|
actor | ActorRef | Acting actor (human- or AI-controlled). Length: 1…256; Pattern: ^[\s\S]+$ |
definition | ContentId | Definition the target instantiates (an NPC, an animal, a structure). Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$ |
kind | "interacted" | Discriminant |
player | PlayerRef | Player controlling the actor; absent for AI-controlled actors. Length: 1…256; Pattern: ^[\s\S]+$ |
target | ActorRef | Actor or structure interacted with. Length: 1…256; Pattern: ^[\s\S]+$ |