Package gaiasky.data

Class SceneJsonLoader

java.lang.Object
gaiasky.data.SceneJsonLoader

public class SceneJsonLoader extends Object
Loads JSON files into a scene object, which contains an ECS world.
  • Constructor Details

    • SceneJsonLoader

      public SceneJsonLoader()
  • Method Details

    • loadScene

      public static void loadScene(com.badlogic.gdx.files.FileHandle[] jsonFiles, Scene scene) throws FileNotFoundException, com.badlogic.gdx.utils.reflect.ReflectionException
      Throws:
      FileNotFoundException
      com.badlogic.gdx.utils.reflect.ReflectionException
    • loadJsonFile

      public static com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity> loadJsonFile(com.badlogic.gdx.files.FileHandle jsonFile, Scene scene) throws com.badlogic.gdx.utils.reflect.ReflectionException, FileNotFoundException
      Throws:
      com.badlogic.gdx.utils.reflect.ReflectionException
      FileNotFoundException