Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerSyncSettingsEvent<RoomType>

Emitted when a player (i.e. the host of the room) sets the settings of the room.

Type parameters

  • RoomType: Hostable

Hierarchy

Implements

Index

Properties

Static eventName

eventName: "player.syncsettings" = ...

eventName

eventName: "player.syncsettings" = ...

Readonly message

message: undefined | SyncSettingsMessage

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.

Readonly settings

settings: GameSettings

Accessors

alteredSettings

  • get alteredSettings(): GameSettings

isDirty

  • get isDirty(): boolean

Constructors

constructor

Methods

setSettings

  • setSettings(settings: Partial<AllGameSettings>): void

Generated using TypeDoc