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

Hierarchy

  • BasicEvent
    • PlayerReadyEvent

Implements

Properties

Constructors

Properties

eventName: "player.ready"
eventName: "player.ready"
player: PlayerData<RoomType>

The player that this event is for.

room: RoomType

The room or client that the event came from.

Constructors

  • Type Parameters

    Parameters

    Returns PlayerReadyEvent<RoomType>

Generated using TypeDoc