Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerMoveEvent<RoomType>

Emitted when a player moves.

Type parameters

  • RoomType: Hostable

Hierarchy

Implements

Index

Properties

Static eventName

eventName: "player.move" = ...

eventName

eventName: "player.move" = ...

Readonly player

player: PlayerData<RoomType>

The player that this event is for.

Readonly position

position: Vector2

Readonly room

room: RoomType

The room or client that the event came from.

Readonly velocity

velocity: Vector2

Constructors

constructor

Generated using TypeDoc