Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AssetManager

Hierarchy

  • AssetManager

Implements

Index

Constructors

constructor

Properties

Private _assets

_assets: object

Type declaration

Private _liveAbsolutePathTable

_liveAbsolutePathTable: object

Type declaration

  • [path: string]: string

Private _liveAssetVirtualPathTable

_liveAssetVirtualPathTable: object

Type declaration

Private _moduleMainScripts

_moduleMainScripts: ModuleMainScriptsMap

Private _refCounts

_refCounts: object

Type declaration

  • [key: string]: number

configuration

configuration: object

Type declaration

  • [key: string]: any

game

game: Game

Static MAX_ERROR_COUNT

MAX_ERROR_COUNT: number

Methods

Private _countLoadingAsset

  • _countLoadingAsset(): number
  • Returns number

Private _createAssetFor

_normalize

Private _onAssetError

Private _onAssetLoad

  • _onAssetLoad(asset: Asset): void

_releaseAsset

  • _releaseAsset(assetId: string): void
  • Parameters

    • assetId: string

    Returns void

destroy

  • destroy(): void
  • Returns void

destroyed

  • destroyed(): boolean
  • Returns boolean

globalAssetIds

  • globalAssetIds(): string[]
  • Returns string[]

requestAsset

requestAssets

retryLoad

  • retryLoad(asset: Asset): void
  • Parameters

    Returns void

unrefAsset

  • unrefAsset(assetOrId: string | Asset): void
  • Parameters

    • assetOrId: string | Asset

    Returns void

Private unrefAssets

  • unrefAssets(assetOrIds: (string | Asset)[]): void
  • Parameters

    • assetOrIds: (string | Asset)[]

    Returns void

Generated using TypeDoc