Package zombie.asset
Class AssetManager
java.lang.Object
zombie.asset.AssetManager
- All Implemented Interfaces:
AssetStateObserver
- Direct Known Subclasses:
AiSceneAssetManager
,AnimationAssetManager
,AnimNodeAssetManager
,ClothingItemAssetManager
,MeshAssetManager
,ModelAssetManager
,TextureAssetManager
,TextureIDAssetManager
,WorldMapDataAssetManager
public abstract class AssetManager extends java.lang.Object implements AssetStateObserver
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AssetManager.AssetParams
static class
AssetManager.AssetTable
-
Constructor Summary
Constructors Constructor Description AssetManager()
-
Method Summary
Modifier and Type Method Description void
create(AssetType assetType, AssetManagers assetManagers)
protected abstract Asset
createAsset(AssetPath assetPath, AssetManager.AssetParams assetParams)
void
destroy()
protected abstract void
destroyAsset(Asset asset)
void
enableUnload(boolean boolean1)
protected Asset
get(AssetPath assetPath)
AssetManager.AssetTable
getAssetTable()
AssetManagers
getOwner()
void
load(Asset asset)
Asset
load(AssetPath assetPath)
Asset
load(AssetPath assetPath, AssetManager.AssetParams assetParams)
protected boolean
loadDataFromFile(Asset asset, IFile iFile)
protected void
onLoadingFailed(Asset asset)
protected void
onLoadingSucceeded(Asset asset)
void
onStateChanged(Asset.State state, Asset.State state2, Asset asset)
void
reload(Asset asset)
void
reload(AssetPath assetPath)
void
reload(Asset asset, AssetManager.AssetParams assetParams)
void
removeUnreferenced()
protected void
setTask(Asset asset, AssetTask assetTask)
protected void
startLoading(Asset asset)
void
unload(Asset asset)
void
unload(AssetPath assetPath)
protected void
unloadData(Asset asset)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AssetManager
public AssetManager()
-
-
Method Details
-
create
-
destroy
public void destroy() -
removeUnreferenced
public void removeUnreferenced() -
load
-
load
-
load
-
unload
-
unload
-
reload
-
reload
-
reload
-
enableUnload
public void enableUnload(boolean boolean1) -
onStateChanged
- Specified by:
onStateChanged
in interfaceAssetStateObserver
-
startLoading
-
onLoadingSucceeded
-
onLoadingFailed
-
setTask
-
loadDataFromFile
-
unloadData
-
getAssetTable
-
getOwner
-
createAsset
-
destroyAsset
-
get
-