Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IndexedPacket

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

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

Methods

Protected Abstract getIndexSize

  • getIndexSize(): number
  • Returns number

getRegistrarId

  • getRegistrarId(): number

Abstract getType

Protected readBool

  • readBool(): boolean
  • Returns boolean

Protected readContainer

Protected readCorpse

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

Protected readCreature

Protected readDoodad

  • readDoodad(): Doodad | undefined

Protected readEntity

Protected readFloat64

  • readFloat64(): number
  • Returns number

Protected readHuman

Protected readIndexedBool

  • readIndexedBool(): boolean | undefined
  • Returns boolean | undefined

Protected readIndexedContainer

  • Returns IContainer | undefined

Protected readIndexedCorpse

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

Protected readIndexedCreature

  • readIndexedCreature(): Creature | undefined
  • Returns Creature | undefined

Protected readIndexedDoodad

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

Protected readIndexedEntity

  • Returns Creature | NPC | Player | undefined

Protected readIndexedFloat64

  • readIndexedFloat64(): number | undefined
  • Returns number | undefined

Protected readIndexedHuman

  • readIndexedHuman(): Human | undefined
  • Returns Human | undefined

Protected readIndexedInt8

  • readIndexedInt8(): number | undefined
  • Returns number | undefined

Protected readIndexedItem

  • readIndexedItem(): Item | undefined
  • Returns Item | undefined

Protected readIndexedItems

  • readIndexedItems(): Item[] | undefined
  • Returns Item[] | undefined

Protected readIndexedMovementIntent

  • Returns IMovementIntent | undefined

Protected readIndexedNPC

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

Protected readIndexedObject

  • readIndexedObject(): any
  • Returns any

Protected readIndexedPlayer

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

Protected readIndexedString

  • readIndexedString(): string | undefined
  • Returns string | undefined

Protected readIndexedStringArray

  • readIndexedStringArray(): string[] | undefined
  • Returns string[] | undefined

Protected readIndexedUint16

  • readIndexedUint16(): number | undefined
  • Returns number | undefined

Protected readIndexedUint32

  • readIndexedUint32(): number | undefined
  • Returns number | undefined

Protected readIndexedUint32NumberArray

  • readIndexedUint32NumberArray(): number[] | undefined
  • Returns number[] | undefined

Protected readIndexedUint8

  • readIndexedUint8(): number | undefined
  • Returns number | undefined

Protected readIndexedUint8Array

  • readIndexedUint8Array(): Uint8Array | undefined
  • Returns Uint8Array | undefined

Protected readIndexedVector2

  • readIndexedVector2(): IVector2 | undefined
  • Returns IVector2 | undefined

Protected readIndexedVector2Array

  • readIndexedVector2Array(): IVector2[] | undefined
  • Returns IVector2[] | undefined

Protected readIndexedVector3

  • readIndexedVector3(): IVector3 | undefined
  • Returns IVector3 | undefined

Protected readInt8

  • readInt8(): number
  • Returns number

Protected readItem

Protected readItems

  • readItems(): Item[]

Protected readMovementIntent

Protected readNPC

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

Protected readObject

  • readObject(): any
  • Returns any

Protected readPlayer

  • readPlayer(): Player | undefined

Protected readString

  • readString(): string
  • Returns string

Protected readStringArray

  • readStringArray(): string[]

Protected readTileEvent

  • readTileEvent(): any

Protected readUint16

  • readUint16(): number
  • Returns number

Protected readUint32

  • readUint32(): number
  • Returns number

Protected readUint32NumberArray

  • readUint32NumberArray(): number[]

Protected readUint8

  • readUint8(): number
  • Returns number

Protected readUint8Array

  • readUint8Array(): Uint8Array

Protected readVector2

Protected readVector2Array

Protected readVector3

Protected resetIndexes

  • resetIndexes(write: boolean): void
  • Parameters

    • write: boolean

    Returns void

Protected writeBool

  • writeBool(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

Protected writeContainer

Protected writeCorpse

  • writeCorpse(value: Corpse): void
  • Parameters

    • value: Corpse

    Returns void

Protected writeCreature

Protected writeDoodad

  • writeDoodad(value: Doodad): void

Protected writeEntity

  • writeEntity(value: Entity): void

Protected writeFloat64

  • writeFloat64(value: number): void
  • Parameters

    • value: number

    Returns void

Protected writeHuman

  • writeHuman(value: Human): void
  • Parameters

    Returns void

Protected writeIndexedBool

  • writeIndexedBool(value?: undefined | false | true): void
  • Parameters

    • Optional value: undefined | false | true

    Returns void

Protected writeIndexedContainer

  • Parameters

    Returns void

Protected writeIndexedCorpse

  • writeIndexedCorpse(value?: Corpse): void
  • Parameters

    Returns void

Protected writeIndexedCreature

  • writeIndexedCreature(value?: Creature): void
  • Parameters

    Returns void

Protected writeIndexedDoodad

  • writeIndexedDoodad(value?: Doodad): void
  • Parameters

    Returns void

Protected writeIndexedEntity

  • writeIndexedEntity(value?: Entity): void
  • Parameters

    Returns void

Protected writeIndexedFloat64

  • writeIndexedFloat64(value?: undefined | number): void
  • Parameters

    • Optional value: undefined | number

    Returns void

Protected writeIndexedHuman

  • writeIndexedHuman(value?: Human): void
  • Parameters

    Returns void

Protected writeIndexedInt8

  • writeIndexedInt8(value?: undefined | number): void
  • Parameters

    • Optional value: undefined | number

    Returns void

Protected writeIndexedItem

  • writeIndexedItem(value?: Item): void
  • Parameters

    • Optional value: Item

    Returns void

Protected writeIndexedItems

  • writeIndexedItems(value?: Item[]): void
  • Parameters

    • Optional value: Item[]

    Returns void

Protected writeIndexedMovementIntent

  • Parameters

    Returns void

Protected writeIndexedNPC

  • writeIndexedNPC(value?: NPC): void
  • Parameters

    • Optional value: NPC

    Returns void

Protected writeIndexedObject

  • writeIndexedObject(value?: any): void
  • Parameters

    • Optional value: any

    Returns void

Protected writeIndexedPlayer

  • writeIndexedPlayer(value?: Player): void
  • Parameters

    Returns void

Protected writeIndexedString

  • writeIndexedString(value?: undefined | string): void
  • Parameters

    • Optional value: undefined | string

    Returns void

Protected writeIndexedStringArray

  • writeIndexedStringArray(value?: string[]): void
  • Parameters

    • Optional value: string[]

    Returns void

Protected writeIndexedUint16

  • writeIndexedUint16(value?: undefined | number): void
  • Parameters

    • Optional value: undefined | number

    Returns void

Protected writeIndexedUint32

  • writeIndexedUint32(value?: undefined | number): void
  • Parameters

    • Optional value: undefined | number

    Returns void

Protected writeIndexedUint32NumberArray

  • writeIndexedUint32NumberArray(value?: number[]): void
  • Parameters

    • Optional value: number[]

    Returns void

Protected writeIndexedUint8

  • writeIndexedUint8(value?: undefined | number): void
  • Parameters

    • Optional value: undefined | number

    Returns void

Protected writeIndexedUint8Array

  • writeIndexedUint8Array(value?: Uint8Array): void
  • Parameters

    • Optional value: Uint8Array

    Returns void

Protected writeIndexedVector2

  • writeIndexedVector2(value?: IVector2): void
  • Parameters

    Returns void

Protected writeIndexedVector2Array

  • writeIndexedVector2Array(value?: IVector2[]): void
  • Parameters

    Returns void

Protected writeIndexedVector3

  • writeIndexedVector3(value?: IVector3): 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

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

Protected writeString

  • writeString(value: string): void
  • Parameters

    • value: string

    Returns void

Protected writeStringArray

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

    • value: string[]

    Returns void

Protected writeTileEvent

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

Protected writeUint8

  • writeUint8(value: number): void
  • Parameters

    • value: number

    Returns void

Protected writeUint8Array

  • writeUint8Array(value: Uint8Array): void
  • Parameters

    • value: Uint8Array

    Returns void

Protected writeVector2

Protected writeVector2Array

  • writeVector2Array(value: IVector2[]): void

Protected writeVector3

Static getRegistrarId

  • getRegistrarId(): number

Static setRegistrarId

  • setRegistrarId(id: number): void
  • Parameters

    • id: number

    Returns void

Generated using TypeDoc