Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerTracker

Hierarchy

  • PlayerTracker

Index

Constructors

constructor

Properties

Private emitter

emitter: EventEmitter

Private trackedPlayers

trackedPlayers: object

Type declaration

Methods

getAllPlayers

getPlayersFor

on

  • Attaches an event listener to the specified event.

    Parameters

    • event: "enter" | "leave"

      The event to attach the listener to.

    • listener: PlayerEventListener

      The function to invoke when the event is fired.

    Returns EventEmitter

Private onNewTick

  • onNewTick(client: Client, newTick: NewTickPacket): void

Private onUpdate

  • onUpdate(client: Client, update: UpdatePacket): void

Generated using TypeDoc