Class SceneAssetLoader

java.lang.Object
technology.sola.engine.assets.AssetLoader<Scene>
technology.sola.engine.assets.scene.SceneAssetLoader

@NullMarked public class SceneAssetLoader extends AssetLoader<Scene>
SceneAssetLoader is an AssetLoader implementation for Scenes.
  • Constructor Details

  • 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 a SceneAssetLoader with the desired Component JsonMappers. The default component JsonMappers are included automatically.
      Parameters:
      assetLoaderProvider - the AssetLoaderProvider
      jsonMappers - the component JSON mappers to add
    • configure

      public void configure(List<technology.sola.json.mapper.JsonMapper<? extends technology.sola.ecs.Component>> additionalJsonMappers)
      Configures the SceneAssetLoader with the desired Component JsonMappers. The default component JsonMappers are included automatically.
      Parameters:
      additionalJsonMappers - the component JSON mappers to add
    • getAssetClass

      public Class<Scene> getAssetClass()
      Specified by:
      getAssetClass in class AssetLoader<Scene>
      Returns:
      The Class of the Asset
    • loadAsset

      protected AssetHandle<Scene> loadAsset(String path)
      Description copied from class: AssetLoader
      Returns an AssetHandle for the specified path and beings loading the Asset.
      Specified by:
      loadAsset in class AssetLoader<Scene>
      Parameters:
      path - the path to the asset
      Returns:
      the AssetHandle for the path