Skip to content

Latest commit

 

History

History
133 lines (59 loc) · 1.88 KB

File metadata and controls

133 lines (59 loc) · 1.88 KB

Home > server > WorldLoopEventPayloads

WorldLoopEventPayloads interface

Event payloads for WorldLoop emitted events.

Signature:

export interface WorldLoopEventPayloads 

Properties

Property

Modifiers

Type

Description

"WORLD_LOOP.START"

{ worldLoop: WorldLoop; }

Emitted when the world loop starts.

"WORLD_LOOP.STOP"

{ worldLoop: WorldLoop; }

Emitted when the world loop stops.

"WORLD_LOOP.TICK_END"

{ worldLoop: WorldLoop; tickDurationMs: number; }

Emitted when the world loop tick ends.

"WORLD_LOOP.TICK_ERROR"

{ worldLoop: WorldLoop; error: Error; }

Emitted when an error occurs during a world loop tick.

"WORLD_LOOP.TICK_START"

{ worldLoop: WorldLoop; tickDeltaMs: number; }

Emitted when the world loop tick starts.