Interface RosourceItemsReturnType

interface RosourceItemsReturnType {
    cloneModel: ((name, options?) => Entity);
    getModel: ((name) => Entity);
    getResouces: (() => {
        name?: string;
        resource: any;
        type?: string;
        url?: string;
    }[]);
    getResource: ((name) => any);
    getTexture: ((name) => Texture);
    promises: ((progressCb?) => Promise<any[]>);
}

Properties

cloneModel: ((name, options?) => Entity)

根据模型名称克隆新的模型

Type declaration

getModel: ((name) => Entity)

Type declaration

getResouces: (() => {
    name?: string;
    resource: any;
    type?: string;
    url?: string;
}[])

Type declaration

    • (): {
          name?: string;
          resource: any;
          type?: string;
          url?: string;
      }[]
    • Returns {
          name?: string;
          resource: any;
          type?: string;
          url?: string;
      }[]

getResource: ((name) => any)

Type declaration

    • (name): any
    • Parameters

      • name: any

      Returns any

getTexture: ((name) => Texture)

Type declaration

    • (name): Texture
    • Parameters

      • name: any

      Returns Texture

promises: ((progressCb?) => Promise<any[]>)

Type declaration

    • (progressCb?): Promise<any[]>
    • Parameters

      • Optional progressCb: ((percentage, error?) => void)
          • (percentage, error?): void
          • Parameters

            • percentage: number
            • Optional error: any

            Returns void

      Returns Promise<any[]>