Class MovingPlatformPlayerUpdateEvent<RoomType>

Emitted when the player on a moving platform is updated. This is also when the moving platform moves left or right.

Type Parameters

Hierarchy

  • RevertableEvent
    • MovingPlatformPlayerUpdateEvent

Implements

Properties

eventName: "movingplatform.updateplayer"
eventName: "movingplatform.updateplayer"
message: undefined | RepairSystemMessage

The message that this event originated from.

movingplatform: MovingPlatformSystem<RoomType>

The moving platform system that this event is for.

player: undefined | PlayerData<RoomType>

The player on the moving platform, if any.

reverted: boolean
room: RoomType

The room or client that the event came from.

The direction that the moving platform is moving in.

Accessors

  • get alteredPlayer(): undefined | PlayerData<RoomType>
  • The altered player that will be on the moving platform, if changed.

    Returns undefined | PlayerData<RoomType>

  • get alteredSide(): MovingPlatformSide
  • The altered direction that the moving platfomr will move in, if changed.

    Returns MovingPlatformSide

Constructors

Methods

  • Returns void

  • Change the player that is on the moving platform.

    Parameters

    • player: undefined | PlayerData<RoomType>

      The player to get onto the moving platform.

    Returns void

  • Change the direction that the moving platform is moving in.

    Parameters

    Returns void

Generated using TypeDoc