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 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(String fileName,
FileHandle file,
P parameter)
Returns the assets this asset requires to be loaded first.
|
FileHandle |
resolve(String fileName) |
public AssetLoader(FileHandleResolver resolver)
FileHandleResolver
to use to resolve the file associated with the asset name.resolver
- public FileHandle resolve(String fileName)
fileName
- file name to resolveFileHandleResolver
set on the loaderpublic abstract Array<AssetDescriptor> getDependencies(String fileName, FileHandle file, P parameter)
fileName
- name of the asset to loadfile
- the resolved file to loadparameter
- parameters for loading the assetCopyright © 2014. All rights reserved.