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 GuiJsonDocument
s.-
Constructor Summary
ConstructorsConstructorDescriptionGuiJsonDocumentAssetLoader
(AssetLoader<JsonElementAsset> jsonElementAssetAssetLoader, GuiJsonDocumentBuilder guiJsonDocumentBuilder) Creates an instance of this asset loader. -
Method Summary
Modifier and TypeMethodDescriptionprotected AssetHandle<GuiJsonDocument>
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
-
GuiJsonDocumentAssetLoader
public GuiJsonDocumentAssetLoader(AssetLoader<JsonElementAsset> jsonElementAssetAssetLoader, GuiJsonDocumentBuilder guiJsonDocumentBuilder) Creates an instance of this asset loader.- Parameters:
jsonElementAssetAssetLoader
- theAssetLoader
forJsonElementAsset
used internallyguiJsonDocumentBuilder
- theGuiJsonDocumentBuilder
used internally
-
-
Method Details
-
getAssetClass
- Specified by:
getAssetClass
in classAssetLoader<GuiJsonDocument>
- 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<GuiJsonDocument>
- Parameters:
path
- the path to the asset- Returns:
- the
AssetHandle
for the path
-