Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BasePacket

Hierarchy

Index

Constructors

constructor

  • Parameters

    Returns BasePacket

Properties

Protected bufferSize

bufferSize: number

Protected byteArray

byteArray: Uint8Array

Protected byteOffset

byteOffset: number

Protected connection

connection: IConnection

Protected dataView

dataView: DataView

Static Protected registrarId

registrarId: number

Accessors

constructorFunction

  • Returns BasePacket

Methods

getRegistrarId

  • getRegistrarId(): number
  • Returns number

Abstract getType

  • Returns PacketType

Protected readBool

  • readBool(): boolean
  • Returns boolean

Protected readContainer

  • Returns IContainer

Protected readCorpse

  • readCorpse(): Corpse | undefined
  • Returns Corpse | undefined

Protected readCreature

  • Returns Creature | undefined

Protected readDoodad

  • readDoodad(): Doodad | undefined
  • Returns Doodad | undefined

Protected readEntity

  • Returns Player | Creature | NPC | undefined

Protected readFloat64

  • readFloat64(): number
  • Returns number

Protected readHuman

  • Returns Player | NPC | undefined

Protected readInt8

  • readInt8(): number
  • Returns number

Protected readItem

  • Returns Item

Protected readItems

  • readItems(): Item[]
  • Returns Item[]

Protected readMovementIntent

  • Returns IMovementIntent

Protected readNPC

  • readNPC(): NPC | undefined
  • Returns NPC | undefined

Protected readObject

  • readObject(): any
  • Returns any

Protected readPlayer

  • readPlayer(): Player | undefined
  • Returns Player | undefined

Protected readString

  • readString(): string
  • Returns string

Protected readStringArray

  • readStringArray(): string[]
  • Returns string[]

Protected readTileEvent

  • readTileEvent(): any
  • Returns any

Protected readUint16

  • readUint16(): number
  • Returns number

Protected readUint32

  • readUint32(): number
  • Returns number

Protected readUint32NumberArray

  • readUint32NumberArray(): number[]
  • Returns number[]

Protected readUint8

  • readUint8(): number
  • Returns number

Protected readUint8Array

  • readUint8Array(): Uint8Array
  • Returns Uint8Array

Protected readVector2

  • Returns IVector2

Protected readVector2Array

  • Returns IVector2[]

Protected readVector3

  • Returns IVector3

Protected writeBool

  • writeBool(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

Protected writeContainer

  • Parameters

    Returns void

Protected writeCorpse

  • writeCorpse(value: Corpse): void
  • Parameters

    • value: Corpse

    Returns void

Protected writeCreature

  • Parameters

    Returns void

Protected writeDoodad

  • writeDoodad(value: Doodad): void
  • Parameters

    Returns void

Protected writeEntity

  • writeEntity(value: Entity): void
  • Parameters

    Returns void

Protected writeFloat64

  • writeFloat64(value: number): void
  • Parameters

    • value: number

    Returns void

Protected writeHuman

  • writeHuman(value: Human): void
  • Parameters

    Returns void

Protected writeInt8

  • writeInt8(value: number): void
  • Parameters

    • value: number

    Returns void

Protected writeItem

  • writeItem(value: Item): void
  • Parameters

    Returns void

Protected writeItems

  • writeItems(value: Item[]): void
  • Parameters

    Returns void

Protected writeMovementIntent

  • Parameters

    Returns void

Protected writeNPC

  • writeNPC(value: NPC): void
  • Parameters

    Returns void

Protected writeObject

  • writeObject(value: any): void
  • Parameters

    • value: any

    Returns void

Protected writePlayer

  • writePlayer(value: Player): void
  • Parameters

    Returns void

Protected writeString

  • writeString(value: string): void
  • Parameters

    • value: string

    Returns void

Protected writeStringArray

  • writeStringArray(value: string[]): void
  • Parameters

    • value: string[]

    Returns void

Protected writeTileEvent

  • Parameters

    Returns void

Protected writeUint16

  • writeUint16(value: number): void
  • Parameters

    • value: number

    Returns void

Protected writeUint32

  • writeUint32(value: number): void
  • Parameters

    • value: number

    Returns void

Protected writeUint32NumberArray

  • writeUint32NumberArray(value: number[]): void
  • Parameters

    • value: number[]

    Returns void

Protected writeUint8

  • writeUint8(value: number): void
  • Parameters

    • value: number

    Returns void

Protected writeUint8Array

  • writeUint8Array(value: Uint8Array): void
  • Parameters

    • value: Uint8Array

    Returns void

Protected writeVector2

  • Parameters

    Returns void

Protected writeVector2Array

  • writeVector2Array(value: IVector2[]): void
  • Parameters

    Returns void

Protected writeVector3

  • Parameters

    Returns void

Static getRegistrarId

  • getRegistrarId(): number
  • Returns number

Static setRegistrarId

  • setRegistrarId(id: number): void
  • Parameters

    • id: number

    Returns void

Generated using TypeDoc