CONTENT CONTRACT · VERSION 1
timer
A timer an owner can set, delivered to one binding.
Signature
{ binding: BindingId, id: ContentId, kind: "timer", owner_scope: OwnerScope, repeats: TimerRepeats }Fields
| Name | Type | Meaning |
|---|---|---|
binding | BindingId | The binding of this package (event timer_fired, owner_from timer_owner) that receives it. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: binding |
id | ContentId | Package-qualified identity; unique within its declaring namespace. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$ |
kind | "timer" | Discriminant |
owner_scope | OwnerScope | Kind of owner the timer is set for. |
repeats | TimerRepeats | Whether the timer may come again out of its own chain (a pulse) and for how long: `never`, while conditions hold, while its figure lives, while its player is online (`docs/content/story-state.md`). |
Validated example
{
"binding": "core:camp_guards_hook",
"id": "core:camp_guards_apply",
"kind": "timer",
"owner_scope": "world",
"repeats": "never"
}