com.badlogic.gdx.assets
Class AssetDescriptor<T>
java.lang.Object
com.badlogic.gdx.assets.AssetDescriptor<T>
public class AssetDescriptor<T>
- extends Object
Describes an asset to be loaded by it's filename, type and AssetLoaderParameters
. Instances of this are used in
AssetLoadingTask
to load the actual asset.
- Author:
- mzechner
fileName
public final String fileName
type
public final Class<T> type
params
public final AssetLoaderParameters params
file
public FileHandle file
- The resolved file. May be null if the fileName has not been resolved yet.
AssetDescriptor
public AssetDescriptor(String fileName,
Class<T> assetType)
AssetDescriptor
public AssetDescriptor(FileHandle file,
Class<T> assetType)
- Creates an AssetDescriptor with an already resolved name.
AssetDescriptor
public AssetDescriptor(String fileName,
Class<T> assetType,
AssetLoaderParameters<T> params)
AssetDescriptor
public AssetDescriptor(FileHandle file,
Class<T> assetType,
AssetLoaderParameters<T> params)
- Creates an AssetDescriptor with an already resolved name.
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013. All Rights Reserved.