@modoki/engine / index / emit
Function: emit()
emit(
type,payload?,world?,level?):void
Record a semantic event. No-op when disabled. The payload is stored verbatim — wrap any entity refs with entityRef() first (see the note above). level defaults to 'info'; prefer gameJournal.ts's journalWarn/journalError over passing it here directly — this 4th positional arg exists mainly so those helpers stay thin wrappers over emit() instead of a parallel recording path.
Parameters
type
string
payload?
unknown
world?
World = ...
level?
JournalLevel = 'info'
Returns
void