From 5c338c3f5ea9428601b3503b3ca41854938c8a7b Mon Sep 17 00:00:00 2001 From: Hendra Gunawan <48410066+JadlionHD@users.noreply.github.com> Date: Sun, 13 Oct 2024 17:31:44 +0700 Subject: [PATCH] [skip ci]: update docs v1.6.2 --- docs/classes/Client.html | 24 ++++++++++++------------ docs/classes/ItemsDat.html | 4 ++-- docs/classes/Peer.html | 10 +++++----- docs/classes/TankPacket.html | 12 ++++++------ docs/classes/TextPacket.html | 14 +++++++------- docs/classes/Variant.html | 12 ++++++------ docs/enums/PacketTypes.html | 4 ++-- docs/enums/VariantTypes.html | 4 ++-- docs/functions/parseText.html | 2 +- docs/interfaces/ActionEvent.html | 4 ++-- docs/interfaces/Caching.html | 4 ++-- docs/interfaces/ClientOptions.html | 4 ++-- docs/interfaces/ClientType.html | 4 ++-- docs/interfaces/ENetServerOptions.html | 4 ++-- docs/interfaces/ExtendString.html | 4 ++-- docs/interfaces/ItemDefinition.html | 4 ++-- docs/interfaces/ItemsDatMeta.html | 4 ++-- docs/interfaces/LoginInfo.html | 4 ++-- docs/interfaces/NativePeerAddress.html | 4 ++-- docs/interfaces/NativePeerMethod.html | 4 ++-- docs/interfaces/PeerData.html | 4 ++-- docs/interfaces/StringOptions.html | 4 ++-- docs/interfaces/Tank.html | 4 ++-- docs/interfaces/VariantOptions.html | 6 +++--- docs/interfaces/VariantTypeBase.html | 4 ++-- docs/interfaces/VariantTypeFloat.html | 4 ++-- docs/interfaces/VariantTypeNumber.html | 4 ++-- docs/interfaces/VariantTypeString.html | 4 ++-- docs/types/Sendable.html | 2 +- docs/types/VariantArg.html | 2 +- docs/types/VariantArray.html | 2 +- typedoc.json | 1 + 32 files changed, 86 insertions(+), 85 deletions(-) diff --git a/docs/classes/Client.html b/docs/classes/Client.html index f426f24..93d73bb 100644 --- a/docs/classes/Client.html +++ b/docs/classes/Client.html @@ -1,4 +1,4 @@ -Client | growtopia.js

Class Client

Hierarchy

  • EventEmitter
    • Client

Constructors

constructor +Client | growtopia.js

Class Client

Hierarchy

  • EventEmitter
    • Client

Constructors

Properties

Constructors

Properties

_client: ClientType
cache: Caching
prefixed: string | boolean

Methods

  • Type Parameters

    • T extends string | symbol

    Parameters

    • event: T
    • fn: ((...args: any[]) => void)
        • (...args): void
        • Parameters

          • Rest...args: any[]

          Returns void

    • Optionalcontext: any

    Returns this

  • Parameters

    • ipAddress: string
    • port: number
    • peerID: number

    Returns boolean

  • Calls each of the listeners registered for a given event.

    +

Constructors

Properties

_client: ClientType
cache: Caching
prefixed: string | boolean

Methods

  • Type Parameters

    • T extends string | symbol

    Parameters

    • event: T
    • fn: ((...args: any[]) => void)
        • (...args): void
        • Parameters

          • Rest...args: any[]

          Returns void

    • Optionalcontext: any

    Returns this

  • Parameters

    • ipAddress: string
    • port: number
    • peerID: number

    Returns boolean

  • Calls each of the listeners registered for a given event.

    Type Parameters

    • T extends string | symbol

    Parameters

    • event: T
    • Rest...args: any[]

    Returns boolean

  • Return an array listing the events for which the emitter has registered listeners.

    -

    Returns (string | symbol)[]

  • Return the number of listeners listening to a given event.

    +

    Returns (string | symbol)[]

  • Return the number of listeners listening to a given event.

    Parameters

    • event: string | symbol

    Returns number

  • Return the listeners registered for a given event.

    Type Parameters

    • T extends string | symbol

    Parameters

    • event: T

    Returns ((...args: any[]) => void)[]

  • Type Parameters

    • T extends string | symbol

    Parameters

    • event: T
    • Optionalfn: ((...args: any[]) => void)
        • (...args): void
        • Parameters

          • Rest...args: any[]

          Returns void

    • Optionalcontext: any
    • Optionalonce: boolean

    Returns this

  • Add a listener for a given event.

    -

    Parameters

    • event: "connect"
    • listener: ((netID: number) => void)
        • (netID): void
        • Parameters

          • netID: number

          Returns void

    Returns this

  • Add a listener for a given event.

    -

    Parameters

    • event: "raw"
    • listener: ((netID: number, data: Buffer) => void)
        • (netID, data): void
        • Parameters

          • netID: number
          • data: Buffer

          Returns void

    Returns this

  • Add a listener for a given event.

    -

    Type Parameters

    Parameters

    Returns this

  • Add a listener for a given event.

    -

    Type Parameters

    Parameters

    Returns this

  • Add a listener for a given event.

    -

    Type Parameters

    Parameters

    Returns this

  • Add a listener for a given event.

    -

    Parameters

    • event: "ready"
    • listener: (() => void)
        • (): void
        • Returns void

    Returns this

  • Add a listener for a given event.

    -

    Parameters

    • event: "error"
    • listener: ((error: Error, data?: Buffer) => void)
        • (error, data?): void
        • Parameters

          • error: Error
          • Optionaldata: Buffer

          Returns void

    Returns this

  • Add a listener for a given event.

    -

    Parameters

    • event: "disconnect"
    • listener: ((netID: number) => void)
        • (netID): void
        • Parameters

          • netID: number

          Returns void

    Returns this

  • Add a one-time listener for a given event.

    +

    Parameters

    • event: "connect"
    • listener: ((netID: number) => void)
        • (netID): void
        • Parameters

          • netID: number

          Returns void

    Returns this

  • Add a listener for a given event.

    +

    Parameters

    • event: "raw"
    • listener: ((netID: number, data: Buffer) => void)
        • (netID, data): void
        • Parameters

          • netID: number
          • data: Buffer

          Returns void

    Returns this

  • Add a listener for a given event.

    +

    Type Parameters

    Parameters

    Returns this

  • Add a listener for a given event.

    +

    Type Parameters

    Parameters

    Returns this

  • Add a listener for a given event.

    +

    Type Parameters

    Parameters

    Returns this

  • Add a listener for a given event.

    +

    Parameters

    • event: "ready"
    • listener: (() => void)
        • (): void
        • Returns void

    Returns this

  • Add a listener for a given event.

    +

    Parameters

    • event: "error"
    • listener: ((error: Error, data?: Buffer) => void)
        • (error, data?): void
        • Parameters

          • error: Error
          • Optionaldata: Buffer

          Returns void

    Returns this

  • Add a listener for a given event.

    +

    Parameters

    • event: "disconnect"
    • listener: ((netID: number) => void)
        • (netID): void
        • Parameters

          • netID: number

          Returns void

    Returns this

  • Add a one-time listener for a given event.

    Type Parameters

    • T extends string | symbol

    Parameters

    • event: T
    • fn: ((...args: any[]) => void)
        • (...args): void
        • Parameters

          • Rest...args: any[]

          Returns void

    • Optionalcontext: any

    Returns this

  • Remove all listeners, or those of the specified event.

    Parameters

    • Optionalevent: string | symbol

    Returns this

  • Remove the listeners of a given event.

    -

    Type Parameters

    • T extends string | symbol

    Parameters

    • event: T
    • Optionalfn: ((...args: any[]) => void)
        • (...args): void
        • Parameters

          • Rest...args: any[]

          Returns void

    • Optionalcontext: any
    • Optionalonce: boolean

    Returns this

+

Type Parameters

Parameters

Returns this

diff --git a/docs/classes/ItemsDat.html b/docs/classes/ItemsDat.html index 686c04c..c6b50f5 100644 --- a/docs/classes/ItemsDat.html +++ b/docs/classes/ItemsDat.html @@ -1,6 +1,6 @@ -ItemsDat | growtopia.js

Class ItemsDat

Constructors

constructor +ItemsDat | growtopia.js

Class ItemsDat

Constructors

Properties

Methods

Constructors

Properties

data: Buffer
meta: ItemsDatMeta = ...

Methods

+

Constructors

Properties

data: Buffer
meta: ItemsDatMeta = ...

Methods

diff --git a/docs/classes/Peer.html b/docs/classes/Peer.html index f6bf228..39031f9 100644 --- a/docs/classes/Peer.html +++ b/docs/classes/Peer.html @@ -1,14 +1,14 @@ -Peer | growtopia.js

Class Peer<T>

Type Parameters

Constructors

constructor +Peer | growtopia.js

Class Peer<T>

Type Parameters

Constructors

Properties

Methods

Constructors

Properties

data: T

Methods

  • Disconnects the peer.

    +

Constructors

Properties

data: T

Methods

  • Disconnects the peer.

    Parameters

    • type: "now" | "later" | "normal" = "later"

      Type of disconnection. Defaults to later.

      -

    Returns void

  • Sends multiple packets to a single peer.

    +

Returns void

Returns void

+

Returns void

diff --git a/docs/classes/TankPacket.html b/docs/classes/TankPacket.html index a6f5cc5..46d1572 100644 --- a/docs/classes/TankPacket.html +++ b/docs/classes/TankPacket.html @@ -1,15 +1,15 @@ TankPacket | growtopia.js

Class TankPacket

Represent a TankPacket.

-

Constructors

Constructors

Properties

Methods

Constructors

Properties

data?: Tank

The tankpacket header and data.

-

Methods

  • Creates a new instance of the TankPacket class.

    +

Returns TankPacket

Properties

data?: Tank

The tankpacket header and data.

+

Methods

  • Converts a buffer to a tank packet.

    +

Returns TankPacket

+

Returns TankPacket

diff --git a/docs/classes/TextPacket.html b/docs/classes/TextPacket.html index 55d8911..9b88f55 100644 --- a/docs/classes/TextPacket.html +++ b/docs/classes/TextPacket.html @@ -1,5 +1,5 @@ TextPacket | growtopia.js

Class TextPacket

TextPacket class to create text packets such as for actions or other uses.

-

Constructors

Constructors

Properties

Methods

parse @@ -8,12 +8,12 @@

Constructors

  • Creates a new TextPacket class

    Parameters

    • type: number

      The type of the packet.

    • strings: string[]

      An array of strings to include, they will be joined by a newline character. (\n)

      -

    Returns TextPacket

Properties

strings: string[]

An array of strings to include, they will be joined by a newline character. (\n)

-
type: number

The type of the packet.

-

Methods

  • Creates a TextPacket class.

    +

Returns TextPacket

Properties

strings: string[]

An array of strings to include, they will be joined by a newline character. (\n)

+
type: number

The type of the packet.

+

Methods

  • Creates a TextPacket class.

    Parameters

    • type: number

      The type of the packet.

    • Rest...strings: string[]

      Strings to include to the packet. They are not arrays, but instead they are arguments for the function.

      -

    Returns TextPacket

  • Creates a TextPacket class from a Buffer.

    +

Returns TextPacket

+

Returns TextPacket

diff --git a/docs/classes/Variant.html b/docs/classes/Variant.html index 41917db..78fbeca 100644 --- a/docs/classes/Variant.html +++ b/docs/classes/Variant.html @@ -1,5 +1,5 @@ Variant | growtopia.js

Class Variant

Represents the Variant class.

-

Constructors

Constructors

Properties

args index options @@ -9,10 +9,10 @@

Constructors

Properties

args: VariantArg[]

The arguments of the Variant.

-
index: number = 0
options: VariantOptions = {}

The options for the variant.

-

Methods

  • Creates a new Variant class.

    +

Returns Variant

Properties

args: VariantArg[]

The arguments of the Variant.

+
index: number = 0
options: VariantOptions = {}

The options for the variant.

+

Methods

+

Returns Variant

diff --git a/docs/enums/PacketTypes.html b/docs/enums/PacketTypes.html index d635876..37edfe4 100644 --- a/docs/enums/PacketTypes.html +++ b/docs/enums/PacketTypes.html @@ -1,5 +1,5 @@ PacketTypes | growtopia.js

Enumeration PacketTypes

Growtopia Packet Types

-

Enumeration Members

Enumeration Members

Enumeration Members

ACTION: 3
CLIENT_LOG_REQ: 7
CLIENT_LOG_RES: 8
ERROR: 5
HELLO: 1
STR: 2
TANK: 4
TRACK: 6
UNK: 0
+

Enumeration Members

ACTION: 3
CLIENT_LOG_REQ: 7
CLIENT_LOG_RES: 8
ERROR: 5
HELLO: 1
STR: 2
TANK: 4
TRACK: 6
UNK: 0
diff --git a/docs/enums/VariantTypes.html b/docs/enums/VariantTypes.html index 3d81501..ac62d50 100644 --- a/docs/enums/VariantTypes.html +++ b/docs/enums/VariantTypes.html @@ -1,9 +1,9 @@ VariantTypes | growtopia.js

Enumeration VariantTypes

Types for each Argument.

-

Enumeration Members

Enumeration Members

FLOAT_1: 1
FLOAT_2: 3
FLOAT_3: 4
NONE: 0
SIGNED_INT: 9
STRING: 2
UNSIGNED_INT: 5
+

Enumeration Members

FLOAT_1: 1
FLOAT_2: 3
FLOAT_3: 4
NONE: 0
SIGNED_INT: 9
STRING: 2
UNSIGNED_INT: 5
diff --git a/docs/functions/parseText.html b/docs/functions/parseText.html index 6065929..3b2ff7d 100644 --- a/docs/functions/parseText.html +++ b/docs/functions/parseText.html @@ -1 +1 @@ -parseText | growtopia.js

Function parseText

  • Parameters

    • chunk: Buffer

    Returns Record<string, string | number>

+parseText | growtopia.js

Function parseText

  • Parameters

    • chunk: Buffer

    Returns Record<string, string | number>

diff --git a/docs/interfaces/ActionEvent.html b/docs/interfaces/ActionEvent.html index bc06ccc..2ddae94 100644 --- a/docs/interfaces/ActionEvent.html +++ b/docs/interfaces/ActionEvent.html @@ -1,2 +1,2 @@ -ActionEvent | growtopia.js

Interface ActionEvent

interface ActionEvent {
    action: string;
    [key: string]: string;
}

Indexable

  • [key: string]: string

Properties

Properties

action: string
+ActionEvent | growtopia.js

Interface ActionEvent

interface ActionEvent {
    action: string;
    [key: string]: string;
}

Indexable

  • [key: string]: string

Properties

Properties

action: string
diff --git a/docs/interfaces/Caching.html b/docs/interfaces/Caching.html index 422efbb..edf964f 100644 --- a/docs/interfaces/Caching.html +++ b/docs/interfaces/Caching.html @@ -1,2 +1,2 @@ -Caching | growtopia.js

Interface Caching

interface Caching {
    players?: Map<number, number>;
}

Properties

Properties

players?: Map<number, number>
+Caching | growtopia.js

Interface Caching

interface Caching {
    players?: Map<number, number>;
}

Properties

Properties

players?: Map<number, number>
diff --git a/docs/interfaces/ClientOptions.html b/docs/interfaces/ClientOptions.html index fb8b984..be10038 100644 --- a/docs/interfaces/ClientOptions.html +++ b/docs/interfaces/ClientOptions.html @@ -1,3 +1,3 @@ -ClientOptions | growtopia.js

Interface ClientOptions

interface ClientOptions {
    enet?: ENetServerOptions;
}

Properties

enet? +ClientOptions | growtopia.js

Interface ClientOptions

interface ClientOptions {
    enet?: ENetServerOptions;
}

Properties

Properties

Built-in https web server

-
+
diff --git a/docs/interfaces/ClientType.html b/docs/interfaces/ClientType.html index 2bd6b15..7a5fe56 100644 --- a/docs/interfaces/ClientType.html +++ b/docs/interfaces/ClientType.html @@ -1,4 +1,4 @@ -ClientType | growtopia.js

Interface ClientType

interface ClientType {
    connect: ((ipAddress: string, port: number, peerID: number) => boolean);
    create: ((maxPeers: number, isClient: boolean) => void);
    deInit: (() => void);
    disconnect: ((peerID: number) => void);
    disconnectLater: ((peerID: number) => void);
    disconnectNow: ((peerID: number) => void);
    getPeer: ((peerID: number) => NativePeerMethod);
    ip: string;
    port: number;
    send: ((peerID: number, count: number, packets: Buffer[]) => void);
    service: (() => void);
    setEmit: ((emit: ((...args: any[]) => void)) => void);
    toggleNewPacket: (() => void);
}

Properties

connect +ClientType | growtopia.js

Interface ClientType

interface ClientType {
    connect: ((ipAddress: string, port: number, peerID: number) => boolean);
    create: ((maxPeers: number, isClient: boolean) => void);
    deInit: (() => void);
    disconnect: ((peerID: number) => void);
    disconnectLater: ((peerID: number) => void);
    disconnectNow: ((peerID: number) => void);
    getPeer: ((peerID: number) => NativePeerMethod);
    ip: string;
    port: number;
    send: ((peerID: number, count: number, packets: Buffer[]) => void);
    service: (() => void);
    setEmit: ((emit: ((...args: any[]) => void)) => void);
    toggleNewPacket: (() => void);
}

Properties

Properties

connect: ((ipAddress: string, port: number, peerID: number) => boolean)

Return ENetPeerState enum value

-
create: ((maxPeers: number, isClient: boolean) => void)
deInit: (() => void)
disconnect: ((peerID: number) => void)
disconnectLater: ((peerID: number) => void)
disconnectNow: ((peerID: number) => void)
getPeer: ((peerID: number) => NativePeerMethod)
ip: string
port: number
send: ((peerID: number, count: number, packets: Buffer[]) => void)
service: (() => void)
setEmit: ((emit: ((...args: any[]) => void)) => void)
toggleNewPacket: (() => void)
+
create: ((maxPeers: number, isClient: boolean) => void)
deInit: (() => void)
disconnect: ((peerID: number) => void)
disconnectLater: ((peerID: number) => void)
disconnectNow: ((peerID: number) => void)
getPeer: ((peerID: number) => NativePeerMethod)
ip: string
port: number
send: ((peerID: number, count: number, packets: Buffer[]) => void)
service: (() => void)
setEmit: ((emit: ((...args: any[]) => void)) => void)
toggleNewPacket: (() => void)
diff --git a/docs/interfaces/ENetServerOptions.html b/docs/interfaces/ENetServerOptions.html index a10cfb8..a87c0b9 100644 --- a/docs/interfaces/ENetServerOptions.html +++ b/docs/interfaces/ENetServerOptions.html @@ -1,5 +1,5 @@ -ENetServerOptions | growtopia.js

Interface ENetServerOptions

interface ENetServerOptions {
    ip?: string;
    maxPeers?: number;
    port?: number;
    useNewPacket?: {
        asClient?: boolean;
    };
}

Properties

ip? +ENetServerOptions | growtopia.js

Interface ENetServerOptions

interface ENetServerOptions {
    ip?: string;
    maxPeers?: number;
    port?: number;
    useNewPacket?: {
        asClient?: boolean;
    };
}

Properties

ip?: string
maxPeers?: number
port?: number
useNewPacket?: {
    asClient?: boolean;
}
+

Properties

ip?: string
maxPeers?: number
port?: number
useNewPacket?: {
    asClient?: boolean;
}
diff --git a/docs/interfaces/ExtendString.html b/docs/interfaces/ExtendString.html index cf7751f..1458dbb 100644 --- a/docs/interfaces/ExtendString.html +++ b/docs/interfaces/ExtendString.html @@ -1,3 +1,3 @@ -ExtendString | growtopia.js

Interface ExtendString

interface ExtendString {
    raw: Buffer;
    value: string;
}

Properties

raw +ExtendString | growtopia.js

Interface ExtendString

interface ExtendString {
    raw: Buffer;
    value: string;
}

Properties

Properties

raw: Buffer
value: string
+

Properties

raw: Buffer
value: string
diff --git a/docs/interfaces/ItemDefinition.html b/docs/interfaces/ItemDefinition.html index c75e298..11ec31d 100644 --- a/docs/interfaces/ItemDefinition.html +++ b/docs/interfaces/ItemDefinition.html @@ -1,4 +1,4 @@ -ItemDefinition | growtopia.js

Interface ItemDefinition

interface ItemDefinition {
    audioVolume?: number;
    blockType?: number;
    bodyPart?: Buffer;
    bodyPartType?: number;
    breakHits?: number;
    collisionType?: number;
    extraBytes?: Buffer;
    extraFile?: ExtendString;
    extraFileHash?: number;
    extraFlags1?: number;
    extraHash1?: number;
    extraOptions?: ExtendString;
    extraOptions2?: ExtendString;
    extraTexture?: ExtendString;
    flags?: number;
    flags2?: number;
    flags3?: number;
    flags4?: number;
    flags5?: number;
    flagsCategory?: number;
    growTime?: number;
    id?: number;
    ingredient?: number;
    isMultiFace?: number;
    isRayman?: number;
    isStripeyWallpaper?: number;
    itemRenderer?: ExtendString;
    materialType?: number;
    maxAmount?: number;
    name?: ExtendString;
    petAbility?: ExtendString;
    petName?: ExtendString;
    petPrefix?: ExtendString;
    petSuffix?: ExtendString;
    punchOptions?: ExtendString;
    rarity?: number;
    resetStateAfter?: number;
    seedBase?: number;
    seedColor?: number;
    seedOverlay?: number;
    seedOverlayColor?: number;
    storageType?: number;
    texture?: ExtendString;
    texture2?: ExtendString;
    textureHash?: number;
    textureX?: number;
    textureY?: number;
    treeBase?: number;
    treeLeaves?: number;
    type?: number;
    unknownBytes1?: Buffer;
    unknownInt1?: number;
    visualEffectType?: number;
    [key: string]: any;
}

Indexable

  • [key: string]: any

Properties

audioVolume? +ItemDefinition | growtopia.js

Interface ItemDefinition

interface ItemDefinition {
    audioVolume?: number;
    blockType?: number;
    bodyPart?: Buffer;
    bodyPartType?: number;
    breakHits?: number;
    collisionType?: number;
    extraBytes?: Buffer;
    extraFile?: ExtendString;
    extraFileHash?: number;
    extraFlags1?: number;
    extraHash1?: number;
    extraOptions?: ExtendString;
    extraOptions2?: ExtendString;
    extraTexture?: ExtendString;
    flags?: number;
    flags2?: number;
    flags3?: number;
    flags4?: number;
    flags5?: number;
    flagsCategory?: number;
    growTime?: number;
    id?: number;
    ingredient?: number;
    isMultiFace?: number;
    isRayman?: number;
    isStripeyWallpaper?: number;
    itemRenderer?: ExtendString;
    materialType?: number;
    maxAmount?: number;
    name?: ExtendString;
    petAbility?: ExtendString;
    petName?: ExtendString;
    petPrefix?: ExtendString;
    petSuffix?: ExtendString;
    punchOptions?: ExtendString;
    rarity?: number;
    resetStateAfter?: number;
    seedBase?: number;
    seedColor?: number;
    seedOverlay?: number;
    seedOverlayColor?: number;
    storageType?: number;
    texture?: ExtendString;
    texture2?: ExtendString;
    textureHash?: number;
    textureX?: number;
    textureY?: number;
    treeBase?: number;
    treeLeaves?: number;
    type?: number;
    unknownBytes1?: Buffer;
    unknownInt1?: number;
    visualEffectType?: number;
    [key: string]: any;
}

Indexable

  • [key: string]: any

Properties

audioVolume?: number
blockType?: number
bodyPart?: Buffer
bodyPartType?: number
breakHits?: number
collisionType?: number
extraBytes?: Buffer
extraFile?: ExtendString
extraFileHash?: number
extraFlags1?: number
extraHash1?: number
extraOptions?: ExtendString
extraOptions2?: ExtendString
extraTexture?: ExtendString
flags?: number
flags2?: number
flags3?: number
flags4?: number
flags5?: number
flagsCategory?: number
growTime?: number
id?: number
ingredient?: number
isMultiFace?: number
isRayman?: number
isStripeyWallpaper?: number
itemRenderer?: ExtendString
materialType?: number
maxAmount?: number
petAbility?: ExtendString
petName?: ExtendString
petPrefix?: ExtendString
petSuffix?: ExtendString
punchOptions?: ExtendString
rarity?: number
resetStateAfter?: number
seedBase?: number
seedColor?: number
seedOverlay?: number
seedOverlayColor?: number
storageType?: number
texture?: ExtendString
texture2?: ExtendString
textureHash?: number
textureX?: number
textureY?: number
treeBase?: number
treeLeaves?: number
type?: number
unknownBytes1?: Buffer
unknownInt1?: number
visualEffectType?: number
+

Properties

audioVolume?: number
blockType?: number
bodyPart?: Buffer
bodyPartType?: number
breakHits?: number
collisionType?: number
extraBytes?: Buffer
extraFile?: ExtendString
extraFileHash?: number
extraFlags1?: number
extraHash1?: number
extraOptions?: ExtendString
extraOptions2?: ExtendString
extraTexture?: ExtendString
flags?: number
flags2?: number
flags3?: number
flags4?: number
flags5?: number
flagsCategory?: number
growTime?: number
id?: number
ingredient?: number
isMultiFace?: number
isRayman?: number
isStripeyWallpaper?: number
itemRenderer?: ExtendString
materialType?: number
maxAmount?: number
petAbility?: ExtendString
petName?: ExtendString
petPrefix?: ExtendString
petSuffix?: ExtendString
punchOptions?: ExtendString
rarity?: number
resetStateAfter?: number
seedBase?: number
seedColor?: number
seedOverlay?: number
seedOverlayColor?: number
storageType?: number
texture?: ExtendString
texture2?: ExtendString
textureHash?: number
textureX?: number
textureY?: number
treeBase?: number
treeLeaves?: number
type?: number
unknownBytes1?: Buffer
unknownInt1?: number
visualEffectType?: number
diff --git a/docs/interfaces/ItemsDatMeta.html b/docs/interfaces/ItemsDatMeta.html index 9f3f563..93ec997 100644 --- a/docs/interfaces/ItemsDatMeta.html +++ b/docs/interfaces/ItemsDatMeta.html @@ -1,4 +1,4 @@ -ItemsDatMeta | growtopia.js

Interface ItemsDatMeta

interface ItemsDatMeta {
    itemCount?: number;
    items: ItemDefinition[];
    version?: number;
}

Properties

itemCount? +ItemsDatMeta | growtopia.js

Interface ItemsDatMeta

interface ItemsDatMeta {
    itemCount?: number;
    items: ItemDefinition[];
    version?: number;
}

Properties

itemCount?: number
version?: number
+

Properties

itemCount?: number
version?: number
diff --git a/docs/interfaces/LoginInfo.html b/docs/interfaces/LoginInfo.html index 2631aa2..7bf8a6a 100644 --- a/docs/interfaces/LoginInfo.html +++ b/docs/interfaces/LoginInfo.html @@ -1,4 +1,4 @@ -LoginInfo | growtopia.js

Interface LoginInfo

interface LoginInfo {
    aid?: string;
    category?: string;
    cbits?: string;
    country?: string;
    deviceVersion?: string;
    doorID?: string;
    f?: string;
    fhash?: string;
    fz?: string;
    game_version?: string;
    GDPR?: string;
    gid?: string;
    hash?: string;
    hash2?: string;
    klv?: string;
    lmode?: string;
    mac?: string;
    meta?: string;
    platformID?: string;
    player_age?: string;
    ProductId?: string;
    protocol?: string;
    requestedName?: string;
    rid?: string;
    tankIDName?: string;
    tankIDPass?: string;
    token?: string;
    totalPlaytime?: string;
    tr?: string;
    user?: string;
    UUIDToken?: string;
    vid?: string;
    wk?: string;
    zf?: string;
}

Properties

aid? +LoginInfo | growtopia.js

Interface LoginInfo

interface LoginInfo {
    aid?: string;
    category?: string;
    cbits?: string;
    country?: string;
    deviceVersion?: string;
    doorID?: string;
    f?: string;
    fhash?: string;
    fz?: string;
    game_version?: string;
    GDPR?: string;
    gid?: string;
    hash?: string;
    hash2?: string;
    klv?: string;
    lmode?: string;
    mac?: string;
    meta?: string;
    platformID?: string;
    player_age?: string;
    ProductId?: string;
    protocol?: string;
    requestedName?: string;
    rid?: string;
    tankIDName?: string;
    tankIDPass?: string;
    token?: string;
    totalPlaytime?: string;
    tr?: string;
    user?: string;
    UUIDToken?: string;
    vid?: string;
    wk?: string;
    zf?: string;
}

Properties

aid? category? cbits? country? @@ -32,4 +32,4 @@ vid? wk? zf? -

Properties

aid?: string
category?: string
cbits?: string
country?: string
deviceVersion?: string
doorID?: string
f?: string
fhash?: string
fz?: string
game_version?: string
GDPR?: string
gid?: string
hash?: string
hash2?: string
klv?: string
lmode?: string
mac?: string
meta?: string
platformID?: string
player_age?: string
ProductId?: string
protocol?: string
requestedName?: string
rid?: string
tankIDName?: string
tankIDPass?: string
token?: string
totalPlaytime?: string
tr?: string
user?: string
UUIDToken?: string
vid?: string
wk?: string
zf?: string
+

Properties

aid?: string
category?: string
cbits?: string
country?: string
deviceVersion?: string
doorID?: string
f?: string
fhash?: string
fz?: string
game_version?: string
GDPR?: string
gid?: string
hash?: string
hash2?: string
klv?: string
lmode?: string
mac?: string
meta?: string
platformID?: string
player_age?: string
ProductId?: string
protocol?: string
requestedName?: string
rid?: string
tankIDName?: string
tankIDPass?: string
token?: string
totalPlaytime?: string
tr?: string
user?: string
UUIDToken?: string
vid?: string
wk?: string
zf?: string
diff --git a/docs/interfaces/NativePeerAddress.html b/docs/interfaces/NativePeerAddress.html index bd27355..7607c8f 100644 --- a/docs/interfaces/NativePeerAddress.html +++ b/docs/interfaces/NativePeerAddress.html @@ -1,3 +1,3 @@ -NativePeerAddress | growtopia.js

Interface NativePeerAddress

interface NativePeerAddress {
    address: string;
    port: number;
}

Properties

address +NativePeerAddress | growtopia.js

Interface NativePeerAddress

interface NativePeerAddress {
    address: string;
    port: number;
}

Properties

Properties

address: string
port: number
+

Properties

address: string
port: number
diff --git a/docs/interfaces/NativePeerMethod.html b/docs/interfaces/NativePeerMethod.html index c284b4c..f3f5851 100644 --- a/docs/interfaces/NativePeerMethod.html +++ b/docs/interfaces/NativePeerMethod.html @@ -1,4 +1,4 @@ -NativePeerMethod | growtopia.js

Interface NativePeerMethod

interface NativePeerMethod {
    getAddress: (() => NativePeerAddress);
    getChannelCount: (() => number);
    getConnectID: (() => number);
    getIncomingBandwidth: (() => unknown);
    getOutgoingBandwidth: (() => number);
    getPacketsLost: (() => number);
    getPacketsSent: (() => number);
    getRTT: (() => number);
    getState: (() => number);
    getTotalWaitingData: (() => number);
}

Properties

getAddress +NativePeerMethod | growtopia.js

Interface NativePeerMethod

interface NativePeerMethod {
    getAddress: (() => NativePeerAddress);
    getChannelCount: (() => number);
    getConnectID: (() => number);
    getIncomingBandwidth: (() => unknown);
    getOutgoingBandwidth: (() => number);
    getPacketsLost: (() => number);
    getPacketsSent: (() => number);
    getRTT: (() => number);
    getState: (() => number);
    getTotalWaitingData: (() => number);
}

Properties

getAddress: (() => NativePeerAddress)
getChannelCount: (() => number)
getConnectID: (() => number)
getIncomingBandwidth: (() => unknown)
getOutgoingBandwidth: (() => number)
getPacketsLost: (() => number)
getPacketsSent: (() => number)
getRTT: (() => number)
getState: (() => number)
getTotalWaitingData: (() => number)
+

Properties

getAddress: (() => NativePeerAddress)
getChannelCount: (() => number)
getConnectID: (() => number)
getIncomingBandwidth: (() => unknown)
getOutgoingBandwidth: (() => number)
getPacketsLost: (() => number)
getPacketsSent: (() => number)
getRTT: (() => number)
getState: (() => number)
getTotalWaitingData: (() => number)
diff --git a/docs/interfaces/PeerData.html b/docs/interfaces/PeerData.html index a865358..fab5872 100644 --- a/docs/interfaces/PeerData.html +++ b/docs/interfaces/PeerData.html @@ -1,3 +1,3 @@ -PeerData | growtopia.js

Interface PeerData

interface PeerData {
    enet: NativePeerMethod;
    netID: number;
}

Properties

enet +PeerData | growtopia.js

Interface PeerData

interface PeerData {
    enet: NativePeerMethod;
    netID: number;
}

Properties

Properties

netID: number
+

Properties

netID: number
diff --git a/docs/interfaces/StringOptions.html b/docs/interfaces/StringOptions.html index 0d168a2..9d20ba8 100644 --- a/docs/interfaces/StringOptions.html +++ b/docs/interfaces/StringOptions.html @@ -1,3 +1,3 @@ -StringOptions | growtopia.js

Interface StringOptions

interface StringOptions {
    encoded?: boolean;
    id?: number;
}

Properties

encoded? +StringOptions | growtopia.js

Interface StringOptions

interface StringOptions {
    encoded?: boolean;
    id?: number;
}

Properties

Properties

encoded?: boolean
id?: number
+

Properties

encoded?: boolean
id?: number
diff --git a/docs/interfaces/Tank.html b/docs/interfaces/Tank.html index 7a0cc8a..1fac5e5 100644 --- a/docs/interfaces/Tank.html +++ b/docs/interfaces/Tank.html @@ -1,5 +1,5 @@ Tank | growtopia.js

Interface Tank

Represents the data needed for the TankPacket.

-
interface Tank {
    buildRange?: number;
    data?: (() => Buffer);
    info?: number;
    netID?: number;
    packetType?: number;
    punchID?: number;
    punchRange?: number;
    state?: number;
    targetNetID?: number;
    type?: number;
    xPos?: number;
    xPunch?: number;
    xSpeed?: number;
    yPos?: number;
    yPunch?: number;
    ySpeed?: number;
}

Properties

interface Tank {
    buildRange?: number;
    data?: (() => Buffer);
    info?: number;
    netID?: number;
    packetType?: number;
    punchID?: number;
    punchRange?: number;
    state?: number;
    targetNetID?: number;
    type?: number;
    xPos?: number;
    xPunch?: number;
    xSpeed?: number;
    yPos?: number;
    yPunch?: number;
    ySpeed?: number;
}

Properties

Properties

buildRange?: number
data?: (() => Buffer)
info?: number
netID?: number
packetType?: number
punchID?: number
punchRange?: number
state?: number
targetNetID?: number
type?: number
xPos?: number
xPunch?: number
xSpeed?: number
yPos?: number
yPunch?: number
ySpeed?: number
+

Properties

buildRange?: number
data?: (() => Buffer)
info?: number
netID?: number
packetType?: number
punchID?: number
punchRange?: number
state?: number
targetNetID?: number
type?: number
xPos?: number
xPunch?: number
xSpeed?: number
yPos?: number
yPunch?: number
ySpeed?: number
diff --git a/docs/interfaces/VariantOptions.html b/docs/interfaces/VariantOptions.html index 1760830..f8e193e 100644 --- a/docs/interfaces/VariantOptions.html +++ b/docs/interfaces/VariantOptions.html @@ -1,6 +1,6 @@ VariantOptions | growtopia.js

Interface VariantOptions

Options for the Variant Packet

-
interface VariantOptions {
    delay?: number;
    netID?: number;
}

Properties

interface VariantOptions {
    delay?: number;
    netID?: number;
}

Properties

Properties

delay?: number

They delay (in ms) on when the client will execute the packet.

-
netID?: number

The netID of the variant.

-
+
netID?: number

The netID of the variant.

+
diff --git a/docs/interfaces/VariantTypeBase.html b/docs/interfaces/VariantTypeBase.html index 08a4436..45d8729 100644 --- a/docs/interfaces/VariantTypeBase.html +++ b/docs/interfaces/VariantTypeBase.html @@ -1,4 +1,4 @@ -VariantTypeBase | growtopia.js

Interface VariantTypeBase

interface VariantTypeBase {
    index: number;
    type: number;
    typeName: string;
}

Hierarchy (view full)

Properties

index +VariantTypeBase | growtopia.js

Interface VariantTypeBase

interface VariantTypeBase {
    index: number;
    type: number;
    typeName: string;
}

Hierarchy (view full)

Properties

Properties

index: number
type: number
typeName: string
+

Properties

index: number
type: number
typeName: string
diff --git a/docs/interfaces/VariantTypeFloat.html b/docs/interfaces/VariantTypeFloat.html index f69b224..57484fb 100644 --- a/docs/interfaces/VariantTypeFloat.html +++ b/docs/interfaces/VariantTypeFloat.html @@ -1,5 +1,5 @@ -VariantTypeFloat | growtopia.js

Interface VariantTypeFloat

interface VariantTypeFloat {
    index: number;
    type: number;
    typeName: string;
    value: number[];
}

Hierarchy (view full)

Properties

index +VariantTypeFloat | growtopia.js

Interface VariantTypeFloat

interface VariantTypeFloat {
    index: number;
    type: number;
    typeName: string;
    value: number[];
}

Hierarchy (view full)

Properties

Properties

index: number
type: number
typeName: string
value: number[]
+

Properties

index: number
type: number
typeName: string
value: number[]
diff --git a/docs/interfaces/VariantTypeNumber.html b/docs/interfaces/VariantTypeNumber.html index ddb7795..65d3d29 100644 --- a/docs/interfaces/VariantTypeNumber.html +++ b/docs/interfaces/VariantTypeNumber.html @@ -1,5 +1,5 @@ -VariantTypeNumber | growtopia.js

Interface VariantTypeNumber

interface VariantTypeNumber {
    index: number;
    type: number;
    typeName: string;
    value: number;
}

Hierarchy (view full)

Properties

index +VariantTypeNumber | growtopia.js

Interface VariantTypeNumber

interface VariantTypeNumber {
    index: number;
    type: number;
    typeName: string;
    value: number;
}

Hierarchy (view full)

Properties

Properties

index: number
type: number
typeName: string
value: number
+

Properties

index: number
type: number
typeName: string
value: number
diff --git a/docs/interfaces/VariantTypeString.html b/docs/interfaces/VariantTypeString.html index 07c0df4..d5f4b69 100644 --- a/docs/interfaces/VariantTypeString.html +++ b/docs/interfaces/VariantTypeString.html @@ -1,5 +1,5 @@ -VariantTypeString | growtopia.js

Interface VariantTypeString

interface VariantTypeString {
    index: number;
    type: number;
    typeName: string;
    value: string;
}

Hierarchy (view full)

Properties

index +VariantTypeString | growtopia.js

Interface VariantTypeString

interface VariantTypeString {
    index: number;
    type: number;
    typeName: string;
    value: string;
}

Hierarchy (view full)

Properties

Properties

index: number
type: number
typeName: string
value: string
+

Properties

index: number
type: number
typeName: string
value: string
diff --git a/docs/types/Sendable.html b/docs/types/Sendable.html index 5c41a95..706ab8c 100644 --- a/docs/types/Sendable.html +++ b/docs/types/Sendable.html @@ -1,2 +1,2 @@ Sendable | growtopia.js

Type Alias Sendable

Sendable:
    | Buffer
    | TextPacket
    | TankPacket
    | Variant

Represents the available type of Objects that are sendable to peers.

-
+
diff --git a/docs/types/VariantArg.html b/docs/types/VariantArg.html index ad675b0..74f2d69 100644 --- a/docs/types/VariantArg.html +++ b/docs/types/VariantArg.html @@ -1,2 +1,2 @@ VariantArg | growtopia.js

Type Alias VariantArg

VariantArg: string | number[] | number

The argument type for the variant.

-
+
diff --git a/docs/types/VariantArray.html b/docs/types/VariantArray.html index 5afd019..dcb16aa 100644 --- a/docs/types/VariantArray.html +++ b/docs/types/VariantArray.html @@ -1 +1 @@ -VariantArray | growtopia.js

Type Alias VariantArray

+VariantArray | growtopia.js

Type Alias VariantArray

diff --git a/typedoc.json b/typedoc.json index 3ba4daa..384a564 100644 --- a/typedoc.json +++ b/typedoc.json @@ -1,5 +1,6 @@ { "entryPoints": ["./src/index.ts"], + "cname": "gtjs.jad.li", "out": "docs", "theme": "default", "entryPointStrategy": "expand",