CONTENT CONTRACT · VERSION 1
Read
Snapshot reads never access live simulation state.
Signature
{ actor: (ActorRef) -> ActorView?, clock: () -> ClockView, count_item: (ActorRef, ItemId) -> Count, nearby: (SnapshotRadius) -> NearbyPage, quest: (PlayerRef, QuestId) -> QuestView?, variable: (VariableId, VariableOwner) -> StateValue }Fields
| Name | Type | Meaning |
|---|---|---|
actor | (ActorRef) -> ActorView? | Read a visible actor. |
clock | () -> ClockView | Read the simulation clock. |
count_item | (ActorRef, ItemId) -> Count | Count an item in the inventory of the event actor or the invocation owner. |
nearby | (SnapshotRadius) -> NearbyPage | Visible actors within this distance of the snapshot centre, at most the declared snapshot radius. |
quest | (PlayerRef, QuestId) -> QuestView? | Read a quest stage and revision for the permitted player. |
variable | (VariableId, VariableOwner) -> StateValue | Read a declared variable, using its virtual initial value when absent. |