Skip to content

@modoki/engine / index / journalEvents

Function: journalEvents()

journalEvents(filter?, world?): GameEvent[]

Read recorded events, optionally filtered by type (exact match) and/or level (that severity AND ABOVE — e.g. level: 'warn' returns warn and error). Returns a copy.

Parameters

filter?

level?

JournalLevel

type?

string

world?

World = ...

Returns

GameEvent[]

Built with Modoki.