Class SceneJsonMapper

java.lang.Object
technology.sola.engine.assets.scene.SceneJsonMapper
All Implemented Interfaces:
technology.sola.json.mapper.JsonMapper<Scene>

@NullMarked public class SceneJsonMapper extends Object implements technology.sola.json.mapper.JsonMapper<Scene>
SceneJsonMapper is a JsonMapper implementation for Scenes.
  • Constructor Details

    • SceneJsonMapper

      public SceneJsonMapper()
      Creates an instance of this JsonMapper with default Component JsonMappers configured.
  • Method Details

    • configure

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

      public Class<Scene> getObjectClass()
      Specified by:
      getObjectClass in interface technology.sola.json.mapper.JsonMapper<Scene>
    • toJson

      public technology.sola.json.JsonObject toJson(Scene object)
      Specified by:
      toJson in interface technology.sola.json.mapper.JsonMapper<Scene>
    • toObject

      public Scene toObject(technology.sola.json.JsonObject jsonObject)
      Specified by:
      toObject in interface technology.sola.json.mapper.JsonMapper<Scene>