An action argument which is an entry from the given key in an object Performs validation when an object is passed

Type Parameters

  • T extends Record<string, any>

Hierarchy

Constructors

Properties

Accessors

Methods

getIndexSize getRegistrarId getType read readBool readContainer readCorpse readCreature readDoodad readEntity readFloat32 readFloat64 readFrom readHuman readIndexedBool readIndexedCorpse readIndexedCreature readIndexedDoodad readIndexedEntity readIndexedFloat64 readIndexedHuman readIndexedInt8 readIndexedItem readIndexedItems readIndexedMovementIntent readIndexedNPC readIndexedObject readIndexedPlayer readIndexedString readIndexedStringArray readIndexedTileEvent readIndexedUint16 readIndexedUint16Array readIndexedUint32 readIndexedUint32NumberArray readIndexedUint8 readIndexedUint8Array readIndexedVector2 readIndexedVector2Array readIndexedVector3 readInt16 readInt32 readInt8 readIsland readItem readItems readMovementIntent readNPC readObject readOptionalBool readOptionalDoodad readOptionalInt16 readOptionalItem readOptionalItems readOptionalString readOptionalTile readOptionalUint8 readOptionalVector3 readPlayer readString readStringArray readTile readTileArray readTileEvent readTruthiness readUint16 readUint16Array readUint32 readUint32NumberArray readUint8 readUint8Array readVector2 readVector2Array readVector3 resetIndexes validate validateObject write writeBool writeContainer writeCorpse writeCreature writeDoodad writeEntity writeFloat32 writeFloat64 writeHuman writeIndexedBool writeIndexedCorpse writeIndexedCreature writeIndexedDoodad writeIndexedEntity writeIndexedFloat64 writeIndexedHuman writeIndexedInt8 writeIndexedItem writeIndexedItems writeIndexedMovementIntent writeIndexedNPC writeIndexedObject writeIndexedPlayer writeIndexedString writeIndexedStringArray writeIndexedTileEvent writeIndexedUint16 writeIndexedUint16Array writeIndexedUint32 writeIndexedUint32NumberArray writeIndexedUint8 writeIndexedUint8Array writeIndexedVector2 writeIndexedVector2Array writeIndexedVector3 writeInt16 writeInt32 writeInt8 writeIsland writeItem writeItems writeMovementIntent writeNPC writeObject writeOptionalBool writeOptionalDoodad writeOptionalInt16 writeOptionalItem writeOptionalItems writeOptionalString writeOptionalTile writeOptionalUint8 writeOptionalVector3 writePlayer writeString writeStringArray writeTile writeTileArray writeTileEvent writeTo writeTruthiness writeUint16 writeUint16Array writeUint32 writeUint32NumberArray writeUint8 writeUint8Array writeVector2 writeVector2Array writeVector3 applyHelperToActionArgument getRegistrarId setRegistrarId

Constructors

  • Type Parameters

    • T extends Record<string, any>

    Parameters

    • Optional object: T

    Returns default<T>

Properties

bufferSize: number
byteArray: Uint8Array
byteOffset: number
connection: IConnection
dataView: DataView
registrarId: number

Accessors

  • get constructorFunction(): typeof default
  • Returns typeof default

Methods

  • Returns number

  • Returns keyof T

  • Returns undefined | boolean

  • Returns undefined | number

  • Parameters

    • write: boolean

    Returns void

  • Parameters

    • value: unknown

    Returns value is keyof T extends object ? Partial<object & keyof T> : never

  • Parameters

    • value: boolean

    Returns boolean

  • Parameters

    • value: number

    Returns void

  • Parameters

    • value: number

    Returns void

  • Parameters

    • Optional value: boolean

    Returns void

  • Parameters

    • Optional value: number

    Returns void

  • Parameters

    • Optional value: number

    Returns void

  • Parameters

    • Optional value: unknown

    Returns void

  • Parameters

    • Optional value: string

    Returns void

  • Parameters

    • Optional value: string[]

    Returns void

  • Parameters

    • Optional value: number

    Returns void

  • Parameters

    • Optional value: Uint16Array

    Returns void

  • Parameters

    • Optional value: number

    Returns void

  • Parameters

    • Optional value: number

    Returns void

  • Parameters

    • Optional value: Uint8Array

    Returns void

  • Parameters

    • value: number

    Returns void

  • Parameters

    • value: number

    Returns void

  • Parameters

    • value: number

    Returns void

  • Parameters

    • value: unknown

    Returns void

  • Parameters

    • Optional value: boolean

    Returns void

  • Parameters

    • Optional value: number

    Returns void

  • Parameters

    • Optional value: string

    Returns void

  • Parameters

    • Optional value: number

    Returns void

  • Parameters

    • value: string

    Returns void

  • Parameters

    • value: string[]

    Returns void

  • Parameters

    Returns void

  • Writes & returns a boolean of whether the given value is truthy

    Type Parameters

    • T

    Parameters

    • Optional value: T

    Returns value is Exclude<T, undefined | null | false | "" | 0>

  • Parameters

    • value: number

    Returns void

  • Parameters

    • value: Uint16Array

    Returns void

  • Parameters

    • value: number

    Returns void

  • Parameters

    • value: number

    Returns void

  • Parameters

    • value: Uint8Array

    Returns void

  • Returns void

  • Parameters

    • id: number

    Returns void

Generated using TypeDoc