Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerCheckColorEvent<RoomType>

Emitted when a player requests to have their color set. Only emitted if the client is the host.

Type parameters

  • RoomType: Hostable

Hierarchy

Implements

Index

Properties

Static eventName

eventName: "player.checkcolor" = ...

alteredColor

alteredColor: Color

canceled

canceled: boolean

eventName

eventName: "player.checkcolor" = ...

Readonly message

message: undefined | CheckColorMessage

The message that this event originated from.

Readonly originalColor

originalColor: Color

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

setColor

  • setColor(color: Color): void

Constructors

constructor

Generated using TypeDoc