Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PongPacket

Hierarchy

Implements

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

sendTime

sendTime: number

Protected synchronizationCheckData

synchronizationCheckData: ISynchronizationCheckData

Static Protected registrarId

registrarId: number

Accessors

constructorFunction

Methods

getAllowedStates

getArrayBuffer

  • getArrayBuffer(id?: undefined | number): ArrayBuffer

getDebugInfo

  • getDebugInfo(): string

Protected getIndexSize

  • getIndexSize(): number

Protected getInitialBufferSize

  • getInitialBufferSize(): number

getRegistrarId

  • getRegistrarId(): number

getSynchronizationCheckData

getType

isAllowedWhenPaused

  • isAllowedWhenPaused(): boolean

isSyncCheckEnabled

  • isSyncCheckEnabled(): boolean

Protected preProcess

  • preProcess(): void
  • Returns void

Protected preReadData

  • preReadData(): void
  • Returns void

Protected preWriteData

  • preWriteData(): void
  • Returns void

process

  • process(): void

processAndSend

processData

  • processData(dataView: DataView): void

Protected readBool

  • readBool(): boolean
  • Returns boolean

Protected readContainer

Protected readCorpse

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

Protected readCreature

Protected readData

  • readData(): void
  • Returns void

Protected readDoodad

  • readDoodad(): Doodad | undefined

Protected readEntity

Protected readFloat64

  • readFloat64(): number
  • Returns number

Protected readHuman

Protected readIndexedBool

  • readIndexedBool(): boolean | undefined

Protected readIndexedContainer

Protected readIndexedCorpse

  • readIndexedCorpse(): Corpse | undefined

Protected readIndexedCreature

  • readIndexedCreature(): Creature | undefined

Protected readIndexedDoodad

  • readIndexedDoodad(): Doodad | undefined

Protected readIndexedEntity

Protected readIndexedFloat64

  • readIndexedFloat64(): number | undefined

Protected readIndexedHuman

  • readIndexedHuman(): Human | undefined

Protected readIndexedInt8

  • readIndexedInt8(): number | undefined

Protected readIndexedItem

  • readIndexedItem(): Item | undefined

Protected readIndexedItems

  • readIndexedItems(): Item[] | undefined

Protected readIndexedMovementIntent

Protected readIndexedNPC

  • readIndexedNPC(): NPC | undefined

Protected readIndexedObject

  • readIndexedObject(): any

Protected readIndexedPlayer

  • readIndexedPlayer(): Player | undefined

Protected readIndexedString

  • readIndexedString(): string | undefined

Protected readIndexedStringArray

  • readIndexedStringArray(): string[] | undefined

Protected readIndexedUint16

  • readIndexedUint16(): number | undefined

Protected readIndexedUint32

  • readIndexedUint32(): number | undefined

Protected readIndexedUint32NumberArray

  • readIndexedUint32NumberArray(): number[] | undefined

Protected readIndexedUint8

  • readIndexedUint8(): number | undefined

Protected readIndexedUint8Array

  • readIndexedUint8Array(): Uint8Array | undefined

Protected readIndexedVector2

  • readIndexedVector2(): IVector2 | undefined

Protected readIndexedVector2Array

  • readIndexedVector2Array(): IVector2[] | undefined

Protected readIndexedVector3

  • readIndexedVector3(): 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

send

  • Parameters

    Returns void

sendTo

  • sendTo(to: PacketTarget, force?: undefined | false | true): void
  • Parameters

    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 writeData

  • writeData(): void
  • Returns void

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

Protected writeIndexedCorpse

  • writeIndexedCorpse(value?: Corpse): void

Protected writeIndexedCreature

  • writeIndexedCreature(value?: Creature): void

Protected writeIndexedDoodad

  • writeIndexedDoodad(value?: Doodad): void

Protected writeIndexedEntity

  • writeIndexedEntity(value?: Entity): void

Protected writeIndexedFloat64

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

    • Optional value: undefined | number

    Returns void

Protected writeIndexedHuman

  • writeIndexedHuman(value?: Human): void

Protected writeIndexedInt8

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

    • Optional value: undefined | number

    Returns void

Protected writeIndexedItem

  • writeIndexedItem(value?: Item): void

Protected writeIndexedItems

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

Protected writeIndexedMovementIntent

Protected writeIndexedNPC

  • writeIndexedNPC(value?: NPC): void

Protected writeIndexedObject

  • writeIndexedObject(value?: any): void

Protected writeIndexedPlayer

  • writeIndexedPlayer(value?: Player): void

Protected writeIndexedString

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

    • Optional value: undefined | string

    Returns void

Protected writeIndexedStringArray

  • writeIndexedStringArray(value?: string[]): 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

Protected writeIndexedUint8

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

    • Optional value: undefined | number

    Returns void

Protected writeIndexedUint8Array

  • writeIndexedUint8Array(value?: Uint8Array): void

Protected writeIndexedVector2

  • writeIndexedVector2(value?: IVector2): void

Protected writeIndexedVector2Array

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

Protected writeIndexedVector3

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