java.lang.Object
technology.sola.engine.assets.AssetLoader<Scene>
technology.sola.engine.assets.scene.SceneAssetLoader
SceneAssetLoader is an
AssetLoader implementation for Scenes.-
Constructor Summary
ConstructorsConstructorDescriptionSceneAssetLoader(AssetLoader<JsonElementAsset> jsonElementAssetAssetLoader) Creates an instance of this asset loader. -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(List<technology.sola.json.mapper.JsonMapper<? extends technology.sola.ecs.Component>> additionalJsonMappers) static voidconfigureFromAssetLoaderProvider(AssetLoaderProvider assetLoaderProvider, List<technology.sola.json.mapper.JsonMapper<? extends technology.sola.ecs.Component>> jsonMappers) protected AssetHandle<Scene>Returns anAssetHandlefor the specified path and beings loading theAsset.Methods inherited from class technology.sola.engine.assets.AssetLoader
addAsset, addAssetMapping, get, getNewAsset, hasAssetMapping
-
Constructor Details
-
SceneAssetLoader
Creates an instance of this asset loader.- Parameters:
jsonElementAssetAssetLoader- theAssetLoaderforJsonElementAssets used internally
-
-
Method Details
-
configureFromAssetLoaderProvider
public static void configureFromAssetLoaderProvider(AssetLoaderProvider assetLoaderProvider, List<technology.sola.json.mapper.JsonMapper<? extends technology.sola.ecs.Component>> jsonMappers) Convenience method for configuring aSceneAssetLoaderwith the desiredComponentJsonMappers. The default component JsonMappers are included automatically.- Parameters:
assetLoaderProvider- theAssetLoaderProviderjsonMappers- the component JSON mappers to add
-
configure
public void configure(List<technology.sola.json.mapper.JsonMapper<? extends technology.sola.ecs.Component>> additionalJsonMappers) Configures theSceneAssetLoaderwith the desiredComponentJsonMappers. The default component JsonMappers are included automatically.- Parameters:
additionalJsonMappers- the component JSON mappers to add
-
getAssetClass
- Specified by:
getAssetClassin classAssetLoader<Scene>- Returns:
- The
Classof theAsset
-
loadAsset
Description copied from class:AssetLoaderReturns anAssetHandlefor the specified path and beings loading theAsset.- Specified by:
loadAssetin classAssetLoader<Scene>- Parameters:
path- the path to the asset- Returns:
- the
AssetHandlefor the path
-