com.badlogic.gdx.assets
Class AssetDescriptor<T>

java.lang.Object
  extended by 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

Field Summary
 FileHandle file
          The resolved file.
 String fileName
           
 AssetLoaderParameters params
           
 Class<T> type
           
 
Constructor Summary
AssetDescriptor(FileHandle file, Class<T> assetType)
          Creates an AssetDescriptor with an already resolved name.
AssetDescriptor(FileHandle file, Class<T> assetType, AssetLoaderParameters<T> params)
          Creates an AssetDescriptor with an already resolved name.
AssetDescriptor(String fileName, Class<T> assetType)
           
AssetDescriptor(String fileName, Class<T> assetType, AssetLoaderParameters<T> params)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

Constructor Detail

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.

Method Detail

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.