Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerReadyEvent<RoomType>

Emitted when a player readies up to start the game.

If a player fails to ready up within a specified time, they are kicked from the game.

Type parameters

  • RoomType: Hostable

Hierarchy

Implements

Index

Properties

Constructors

Properties

Static eventName

eventName: "player.ready" = ...

eventName

eventName: "player.ready" = ...

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.

Constructors

constructor

  • new PlayerReadyEvent<RoomType>(room: RoomType, player: PlayerData<RoomType>): PlayerReadyEvent<RoomType>

Generated using TypeDoc