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 Summary
ConstructorsConstructorDescriptionCreates an instance of thisJsonMapperwith defaultComponentJsonMappers configured. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface technology.sola.json.mapper.JsonMapper
toJson, toList
-
Constructor Details
-
SceneJsonMapper
public SceneJsonMapper()Creates an instance of thisJsonMapperwith defaultComponentJsonMappers configured.
-
-
Method Details
-
configure
public void configure(List<technology.sola.json.mapper.JsonMapper<? extends technology.sola.ecs.Component>> additionalJsonMappers) Configures theSceneJsonMapperwith the desiredComponentJsonMappers. The default component JsonMappers are included automatically.- Parameters:
additionalJsonMappers- the component JSON mappers to add
-
getObjectClass
- Specified by:
getObjectClassin interfacetechnology.sola.json.mapper.JsonMapper<Scene>
-
toJson
- Specified by:
toJsonin interfacetechnology.sola.json.mapper.JsonMapper<Scene>
-
toObject
- Specified by:
toObjectin interfacetechnology.sola.json.mapper.JsonMapper<Scene>
-