Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerSetVisorEvent<RoomType>

Emitted when a player has their player visor updated.

Type parameters

  • RoomType: Hostable

Hierarchy

Implements

Index

Properties

Static eventName

eventName: "player.setvisor" = ...

eventName

eventName: "player.setvisor" = ...

Readonly message

message: undefined | SetVisorMessage

The message that this event originated from.

Readonly newVisorId

newVisorId: string

Readonly oldVisorId

oldVisorId: 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

alteredVisorId

  • get alteredVisorId(): string

Constructors

constructor

  • new PlayerSetVisorEvent<RoomType>(room: RoomType, player: PlayerData<RoomType>, message: undefined | SetVisorMessage, oldVisorId: string, newVisorId: string): PlayerSetVisorEvent<RoomType>

Methods

revert

  • revert(): void

setVisor

  • setVisor(visor: string): void

Generated using TypeDoc