Package-level declarations
Types
Thrown by AssetStorage.add when attempting to add an asset with Identifier that is already present in the AssetStorage.
Container for a single asset of type T managed by AssetStorage.
Thrown by AssetStorage.load or AssetStorage.get when the asset failed to load due to an unexpected loading exception, usually thrown by the associated AssetLoader.
Asynchronous asset loader based on coroutines API. An AssetManager alternative.
Thrown by AssetStorage and related services. message describes the problem, while cause is the optional cause of the exception.
Stores a copy of state of an AssetStorage. For debugging purposes.
An extension of the AssetManager providing asynchronous file loading methods compatible with the coroutine concurrency model.
AsynchronousAssetLoader with improved generics.
This exception can be thrown when accessing Deferred instances returned by AsyncAssetManager. It occurs when an asset scheduled for asynchronous loading cannot be loaded due to the cause exception thrown during a dependency loading.
Uniquely identifies a single asset stored in an AssetStorage by its type and path.
Thrown by AssetStorage.load or AssetStorage.get when the asset failed to load due to invalid loader implementation. Since loaders are pre-validated during registration, normally this exception is extremely rare and caused by invalid AssetStorage.setLoader usage.
Tracks the loading progress of the AssetStorage.
Thrown when the asset requested by an AssetStorage.get variant is not available in the AssetStorage at all or has not been loaded yet.
This exception can be thrown by AssetStorage.loadSync if dependencies of an asset were scheduled for asynchronous loading, but are not loaded yet. AssetStorage.loadSync will not wait for the assets and instead will throw this exception.
Thrown by AssetStorage.load when the AssetLoader for the requested asset type and path is unavailable. See AssetStorage.setLoader.
SynchronousAssetLoader with improved generics.
Thrown by AssetStorage.load or AssetStorage.get variant when the requested asset was unloaded asynchronously.
Thrown when unsupported methods are called on the AssetManagerWrapper. It is typically only caused by AssetLoader instances or a AssetLoaderParameters.LoadedCallback.
Functions
Allows to use AssetLoader.getDependencies method with AssetDescriptor. assetDescriptor contains asset data. Returns a com.badlogic.gdx.utils.Array with asset dependencies described with AssetDescriptor instances. Null if here are no dependencies.
Allows to use SynchronousAssetLoader.load method with AssetDescriptor. assetManager provides asset dependencies for the loader. assetDescriptor contains asset data. Returns fully loaded Asset instance.
Allows to use AsynchronousAssetLoader.loadAsync method with AssetDescriptor. Performs the asynchronous asset loading part without yielding results. assetManager provides asset dependencies for the loader. assetDescriptor contains asset data.
Allows to use AsynchronousAssetLoader.loadSync method with AssetDescriptor. Note that loadAsync must have been called first with the same asset data. assetManager provides asset dependencies for the loader. assetDescriptor contains asset data. Returns fully loaded Asset instance.
Converts this AssetDescriptor to an AssetStorage. Copies AssetDescriptor.type to Identifier.type and AssetDescriptor.fileName to Identifier.path.