@modoki/engine / index / GameEvent
Interface: GameEvent
Debug & Journal
cap
cap:
number
Process-global capture sequence (Percept V3) — a single monotonic counter shared with the EDITOR journal, so the two streams (game tick-stamped, editor seq-stamped) can be interleaved on ONE axis for the unified timeline. Unlike tick (per-world sim frame) this is unique across worlds AND the editor stream.
level
level:
JournalLevel
Triage severity, defaulting to 'info'. Set via gameJournal.ts's journalWarn/ journalError helpers, or the raw emit() 4th arg.
payload?
optionalpayload?:unknown
Arbitrary structured detail.
tick
tick:
number
Time.frame when emitted — ordered, monotonic within a run.
type
type:
string
Semantic event name, e.g. 'match', 'score', 'win'.