RPCCallback<T>: ((this: void, src: number, cb: ((this: void, ...args: T) => void), ...args: any[]) => any)

Type of a RPC function that can be called from the client.

Type Parameters

  • T extends any[] = any

Type declaration

    • (this, src, cb, ...args): any
    • Parameters

      • this: void
      • src: number

        The player source that called the procedure.

      • cb: ((this: void, ...args: T) => void)

        The callback function to call when the procedure is done.

          • (this, ...args): void
          • Parameters

            • this: void
            • Rest...args: T

            Returns void

      • Rest...args: any[]

      Returns any