Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerSetColorEvent<RoomType>

Emitted when a player has their player color updated.

Type parameters

  • RoomType: Hostable

Hierarchy

Implements

Index

Properties

Static eventName

eventName: "player.setcolor" = ...

eventName

eventName: "player.setcolor" = ...

Readonly message

message: undefined | SetColorMessage

The message that this event originated from.

Readonly newColor

newColor: Color

Readonly oldColor

oldColor: 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.

Accessors

alteredColor

  • get alteredColor(): Color

Constructors

constructor

Methods

revert

  • revert(): void

setColor

  • setColor(color: Color): void

Generated using TypeDoc