Module technology.sola.engine
Class GuiJsonDocumentAssetLoader
java.lang.Object
technology.sola.engine.assets.AssetLoader<GuiJsonDocument>
technology.sola.engine.assets.graphics.gui.GuiJsonDocumentAssetLoader
GuiJsonDocumentAssetLoader is an
AssetLoader for GuiJsonDocuments.-
Constructor Summary
ConstructorsConstructorDescriptionGuiJsonDocumentAssetLoader(AssetLoader<JsonElementAsset> jsonElementAssetAssetLoader, GuiJsonDocumentBuilder guiJsonDocumentBuilder) Creates an instance of this asset loader. -
Method Summary
Modifier and TypeMethodDescriptionprotected AssetHandle<GuiJsonDocument>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
-
GuiJsonDocumentAssetLoader
public GuiJsonDocumentAssetLoader(AssetLoader<JsonElementAsset> jsonElementAssetAssetLoader, GuiJsonDocumentBuilder guiJsonDocumentBuilder) Creates an instance of this asset loader.- Parameters:
jsonElementAssetAssetLoader- theAssetLoaderforJsonElementAssetused internallyguiJsonDocumentBuilder- theGuiJsonDocumentBuilderused internally
-
-
Method Details
-
getAssetClass
- Specified by:
getAssetClassin classAssetLoader<GuiJsonDocument>- Returns:
- The
Classof theAsset
-
loadAsset
Description copied from class:AssetLoaderReturns anAssetHandlefor the specified path and beings loading theAsset.- Specified by:
loadAssetin classAssetLoader<GuiJsonDocument>- Parameters:
path- the path to the asset- Returns:
- the
AssetHandlefor the path
-