Module technology.sola.engine
Class FontAssetLoader
java.lang.Object
technology.sola.engine.assets.AssetLoader<Font>
technology.sola.engine.assets.graphics.font.FontAssetLoader
FontAssetLoader is an
AssetLoader implementation for Fonts.-
Constructor Summary
ConstructorsConstructorDescriptionFontAssetLoader(AssetLoader<JsonElementAsset> jsonElementAssetAssetLoader, AssetLoader<SolaImage> solaImageAssetLoader) Creates an instance of this asset loader. -
Method Summary
Modifier and TypeMethodDescriptionprotected AssetHandle<Font>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
-
FontAssetLoader
public FontAssetLoader(AssetLoader<JsonElementAsset> jsonElementAssetAssetLoader, AssetLoader<SolaImage> solaImageAssetLoader) Creates an instance of this asset loader.- Parameters:
jsonElementAssetAssetLoader- theJsonElementAssetAssetLoaderto use internallysolaImageAssetLoader- theSolaImageAssetLoaderto use internally
-
-
Method Details
-
getAssetClass
- Specified by:
getAssetClassin classAssetLoader<Font>- Returns:
- The
Classof theAsset
-
loadAsset
Description copied from class:AssetLoaderReturns anAssetHandlefor the specified path and beings loading theAsset.- Specified by:
loadAssetin classAssetLoader<Font>- Parameters:
path- the path to the asset- Returns:
- the
AssetHandlefor the path
-