ReplicatedEvent beta
Interface of @v12-engine/engine
ts
export interface ReplicatedEventHow an event of the world is told to a player (replicateEvent): what the seat hears it as, and what it says of it to the player, if anything
Members
as
ts
readonly as: SessionEvent['type'];The kind of event on the screen: a computer's seat hears only the kinds a brain reads (COMPUTER_EVENTS)
event
ts
readonly event: EventKey<unknown>;The world's event it tells of: one of the engine's (engineEvents) or a game's own (defineEvent)
tell
ts
tell(payload: unknown, view: SessionView): SessionEvent | undefined;What the player is told of it: nothing for what they may not know