Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerSceneChangeEvent<RoomType>

Emitted when a player changes their scene, i.e. when they first join and before they spawn into the game.

A player does not necessarily have to change their scene, and they will simply not spawn while recieving all game packets and events.

Type parameters

  • RoomType: Hostable

Hierarchy

Implements

Index

Properties

Static eventName

eventName: string

Static eventNamee

eventNamee: "player.scenechange" = ...

canceled

canceled: boolean

eventName

eventName: "player.scenechange" = ...

Readonly message

The message that this event originated from.

Readonly player

player: PlayerData<RoomType>

The player that this event is for.

Readonly room

room: RoomType

The room or client that the event came from.

Methods

cancel

  • cancel(): void

Constructors

constructor

Generated using TypeDoc