java.lang.Object
technology.sola.engine.assets.BulkAssetLoader
BulkAssetLoader handles loading a collection of various
Asset
s proving a handle for the collection with
callbacks for when all the assets have finished loading.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
BulkAssetHandle holds the collection ofAsset
s that have been loaded by aBulkAssetLoader
. -
Constructor Summary
ConstructorsConstructorDescriptionBulkAssetLoader
(AssetLoaderProvider assetLoaderProvider) Creates a BulkAssetLoader instance. -
Method Summary
Modifier and TypeMethodDescriptionAdds anAsset
to be loaded.loadAll()
Starts loading all theAsset
s that have been added returning aBulkAssetLoader.BulkAssetHandle
where callbacks can be added to for being notified when loading finishes.
-
Constructor Details
-
BulkAssetLoader
Creates a BulkAssetLoader instance.- Parameters:
assetLoaderProvider
- theAssetLoaderProvider
-
-
Method Details
-
addAsset
Adds anAsset
to be loaded.- Parameters:
assetClass
- the class of the assetassetId
- the id of the assetpath
- the path to the asset- Returns:
- this
-
loadAll
Starts loading all theAsset
s that have been added returning aBulkAssetLoader.BulkAssetHandle
where callbacks can be added to for being notified when loading finishes.- Returns:
- the
BulkAssetHandle
-