Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerRevertShapeshiftEvent<RoomType>

Emitted when a player (who is a shapeshifter) shapeshifts back into their own form after being shapeshifted as another play for some duration of time.

Use PlayerShapeshiftEvent to listen for when a player actually shapeshifts initially.

Type parameters

  • RoomType: Hostable

Hierarchy

Implements

Index

Properties

Static eventName

eventName: "player.revertshapeshift" = ...

Readonly doAnimation

doAnimation: boolean

eventName

eventName: "player.revertshapeshift" = ...

Readonly message

message: undefined | ProtectPlayerMessage

The message that this event originated from.

Readonly player

player: PlayerData<RoomType>

The player that this event is for.

reverted

reverted: boolean

Readonly room

room: RoomType

The room or client that the event came from.

Readonly target

target: PlayerData<RoomType>

Accessors

alteredDoAnimation

  • get alteredDoAnimation(): boolean

Constructors

constructor

Methods

revert

  • revert(): void

setDoAnimation

  • setDoAnimation(doAnimation: boolean): void
  • Change whether or not an animation will show the player shapeshifting.

    Parameters

    • doAnimation: boolean

      Whether or not to do show an animation of the player shape shifting.

    Returns void

Generated using TypeDoc