EventKey beta
Interface of @v12-engine/engine
ts
export interface EventKey<T>A typed key for an event of a game's own, made with defineEvent
Members
id
ts
readonly id: string;The event's id, unique among the game's events
payload
ts
readonly payload?: T;Only there for the type of the payload
replicate
ts
readonly replicate?: EventAudience<T>;Sent to the screens of these players, in their snapshots. Only to whoever listens in the world when left out