Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerSetHatEvent<RoomType>

Emitted when a player has their player hat updated.

Type parameters

  • RoomType: Hostable

Hierarchy

Implements

Index

Properties

Static eventName

eventName: "player.sethat" = ...

eventName

eventName: "player.sethat" = ...

Readonly message

message: undefined | SetHatMessage

The message that this event originated from.

Readonly newHatId

newHatId: string

Readonly oldHatId

oldHatId: string

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

alteredHatId

  • get alteredHatId(): string

Constructors

constructor

  • new PlayerSetHatEvent<RoomType>(room: RoomType, player: PlayerData<RoomType>, message: undefined | SetHatMessage, oldHatId: string, newHatId: string): PlayerSetHatEvent<RoomType>

Methods

revert

  • revert(): void

setHat

  • setHat(hatId: string): void

Generated using TypeDoc