T - the class of the asset the loader supportsP - the class of the loading parameters the loader supports.public abstract class AssetLoader<T,P extends AssetLoaderParameters<T>>
extends java.lang.Object
| Constructor and Description |
|---|
AssetLoader(FileHandleResolver resolver)
Constructor, sets the
FileHandleResolver to use to resolve the file associated with the asset name. |
| Modifier and Type | Method and Description |
|---|---|
abstract Array<AssetDescriptor> |
getDependencies(java.lang.String fileName,
P parameter) |
FileHandle |
resolve(java.lang.String fileName) |
public AssetLoader(FileHandleResolver resolver)
FileHandleResolver to use to resolve the file associated with the asset name.resolver - public FileHandle resolve(java.lang.String fileName)
fileName - file name to resolveFileHandleResolver set on the loaderpublic abstract Array<AssetDescriptor> getDependencies(java.lang.String fileName, P parameter)
fileName - name of the asset to loadparameter - parameters for loading the asset