java.lang.Object
technology.sola.engine.assets.BulkAssetLoader
BulkAssetLoader handles loading a collection of various
Assets proving a handle for the collection with
callbacks for when all the assets have finished loading.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBulkAssetHandle holds the collection ofAssets that have been loaded by aBulkAssetLoader. -
Constructor Summary
ConstructorsConstructorDescriptionBulkAssetLoader(AssetLoaderProvider assetLoaderProvider) Creates a BulkAssetLoader instance. -
Method Summary
Modifier and TypeMethodDescriptionAdds anAssetto be loaded.loadAll()Starts loading all theAssets that have been added returning aBulkAssetLoader.BulkAssetHandlewhere 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 anAssetto 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 theAssets that have been added returning aBulkAssetLoader.BulkAssetHandlewhere callbacks can be added to for being notified when loading finishes.- Returns:
- the
BulkAssetHandle
-