Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerJoinEvent<RoomType>

Emitted when a player joins the room.

Type parameters

  • RoomType: Hostable

Hierarchy

Implements

Index

Properties

Constructors

Properties

Static eventName

eventName: "player.join" = ...

eventName

eventName: "player.join" = ...

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 PlayerJoinEvent<RoomType>(room: RoomType, player: PlayerData<RoomType>): PlayerJoinEvent<RoomType>

Generated using TypeDoc