Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PetTracker

Hierarchy

  • PetTracker

Index

Constructors

constructor

Properties

Private emitter

emitter: EventEmitter

Private runtime

runtime: Runtime

Private trackedPets

trackedPets: object

Type declaration

Methods

getAllPets

getPetsFor

on

  • Attaches an event listener to the specified event.

    Parameters

    • event: "enter" | "leave"

      The event to attach the listener to.

    • listener: PetEventListener

      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

Private parsePetData

Generated using TypeDoc