skeldjs
    Preparing search index...

    Class PlayerMoveEvent<RoomType>

    Emitted when a player moves.

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    eventName: "player.move" = ...
    newPosition: Vector2

    The new position of the player.

    oldPosition: Vector2

    The old position of the player.

    player: Player<RoomType>

    The player that this event is for.

    room: RoomType

    The room or client that the event came from.

    eventName: "player.move" = ...