Package arc.assets
Class AssetDescriptor<T>
java.lang.Object
arc.assets.AssetDescriptor<T>
Describes an asset to be loaded by its filename, type and
AssetLoaderParameters
. Instances of this are used in
AssetLoadingTask
to load the actual asset.-
Field Summary
-
Constructor Summary
ConstructorDescriptionAssetDescriptor
(Fi file, Class<T> assetType) Creates an AssetDescriptor with an already resolved name.AssetDescriptor
(Fi file, Class<T> assetType, AssetLoaderParameters<T> params) Creates an AssetDescriptor with an already resolved name.AssetDescriptor
(Class<T> assetType) AssetDescriptor
(String fileName, Class<T> assetType) AssetDescriptor
(String fileName, Class<T> assetType, AssetLoaderParameters<T> params) -
Method Summary
-
Field Details
-
fileName
-
type
-
params
-
file
The resolved file. May be null if the fileName has not been resolved yet. -
loaded
Callback for when this asset is loaded. -
errored
Callback for when this asset has an error.
-
-
Constructor Details
-
AssetDescriptor
-
AssetDescriptor
-
AssetDescriptor
Creates an AssetDescriptor with an already resolved name. -
AssetDescriptor
-
AssetDescriptor
Creates an AssetDescriptor with an already resolved name.
-
-
Method Details