Module technology.sola.engine
Class ControlsConfigAssetLoader
java.lang.Object
technology.sola.engine.assets.AssetLoader<ControlsConfig>
technology.sola.engine.assets.input.ControlsConfigAssetLoader
ControlsConfigAssetLoader is an
AssetLoader
implementation for ControlsConfig
s.-
Constructor Summary
ConstructorsConstructorDescriptionControlsConfigAssetLoader
(AssetLoader<JsonElementAsset> jsonElementAssetAssetLoader) Creates an instance of this asset loader. -
Method Summary
Modifier and TypeMethodDescriptionprotected AssetHandle<ControlsConfig>
Returns anAssetHandle
for the specified path and beings loading theAsset
.Methods inherited from class technology.sola.engine.assets.AssetLoader
addAsset, addAssetMapping, get, getNewAsset, hasAssetMapping
-
Constructor Details
-
ControlsConfigAssetLoader
Creates an instance of this asset loader.- Parameters:
jsonElementAssetAssetLoader
- theJsonElementAsset
AssetLoader
to use internally
-
-
Method Details
-
getAssetClass
- Specified by:
getAssetClass
in classAssetLoader<ControlsConfig>
- Returns:
- The
Class
of theAsset
-
loadAsset
Description copied from class:AssetLoader
Returns anAssetHandle
for the specified path and beings loading theAsset
.- Specified by:
loadAsset
in classAssetLoader<ControlsConfig>
- Parameters:
path
- the path to the asset- Returns:
- the
AssetHandle
for the path
-