Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "Resource"

Index

Functions

assignAttributeID

  • assignAttributeID(animation: Animation): void

bindTextureFromAsset

  • bindTextureFromAsset(skin: Skin, assets: {}): void

checkVersion

  • checkVersion(version: string, fname: string): string

constructBoneTree

  • constructBoneTree(bones: Bone[]): void

loadResourceFromContents

  • loadResourceFromContents<T>(contents: Content<T>[], assets: {}, resolver?: (c: T, assets: {}) => void): T[]
  • Type parameters

    • T

    Parameters

    • contents: Content<T>[]
    • assets: {}
      • [key: string]: Asset
    • Optional resolver: (c: T, assets: {}) => void
        • (c: T, assets: {}): void
        • Parameters

          • c: T
          • assets: {}
            • [key: string]: Asset

          Returns void

    Returns T[]

loadResourceFromTextAsset

  • loadResourceFromTextAsset<T>(fileNames: string[], assets: {}, resolver: (c: T, assets: {}) => void): T[]
  • Type parameters

    • T

    Parameters

    • fileNames: string[]
    • assets: {}
      • [key: string]: Asset
    • resolver: (c: T, assets: {}) => void
        • (c: T, assets: {}): void
        • Parameters

          • c: T
          • assets: {}
            • [key: string]: Asset

          Returns void

    Returns T[]

mergeAssetArray

  • mergeAssetArray(assetArray: {}[]): {}
  • Parameters

    • assetArray: {}[]

    Returns {}

    • [key: string]: Asset

Generated using TypeDoc