Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UpdatePacket

Received when an update even occurs. Some events include

  • One or more new objects have entered the map (become visible)
  • One or more objects have left the map (become invisible)
  • New tiles are visible

Hierarchy

  • UpdatePacket

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

drops

drops: number[]

The visible objects which have left the map (become invisible).

newObjects

newObjects: ObjectData[]

The new objects which have entered the map (become visible).

propagate

propagate: boolean = true

tiles

The new tiles which are visible.

type

type: PacketType = PacketType.UPDATE

Methods

read

write

Generated using TypeDoc