Skip to content

LoggedEvent beta ​

Interface of @v12-engine/engine

ts
export interface LoggedEvent

Something that happened in the rules, as the event log keeps it

Members ​

count ​

ts
count?: number;

How many times a hook ran in the tick

detail ​

ts
detail?: unknown;

What it said, plain data. For a hook, what the first run of it in the tick was given

kind ​

ts
kind: 'event' | 'hook';

Whether it is an engine event or a hook

name ​

ts
name: string;

The engine's name for it, or a game's id

own ​

ts
own: boolean;

One of the game's own, rather than the engine's

ran ​

ts
ran: string[];

The listeners that ran on an event, or the handlers of a hook

seq ​

ts
seq: number;

In the order they were logged, for asking for what came after

tick ​

ts
tick: number;

The tick it happened in