Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerSetPetEvent<RoomType>

Emitted when a player has their player pet updated.

Type parameters

  • RoomType: Hostable

Hierarchy

Implements

Index

Properties

Static eventName

eventName: "player.setpet" = ...

eventName

eventName: "player.setpet" = ...

Readonly message

message: undefined | SetPetMessage

The message that this event originated from.

Readonly newPetId

newPetId: string

Readonly oldPetId

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

alteredPetId

  • get alteredPetId(): string

Constructors

constructor

  • new PlayerSetPetEvent<RoomType>(room: RoomType, player: PlayerData<RoomType>, message: undefined | SetPetMessage, oldPetId: string, newPetId: string): PlayerSetPetEvent<RoomType>

Methods

revert

  • revert(): void

setPet

  • setPet(pet: string): void

Generated using TypeDoc