Package gaiasky.data

Class NewGeoJsonLoader

java.lang.Object
gaiasky.data.AbstractSceneLoader
gaiasky.data.NewGeoJsonLoader
All Implemented Interfaces:
ISceneLoader

public class NewGeoJsonLoader extends AbstractSceneLoader
Loads GeoJson files into ECS entities.
  • Constructor Details

    • NewGeoJsonLoader

      public NewGeoJsonLoader()
  • Method Details

    • loadData

      public com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity> loadData() throws FileNotFoundException
      Description copied from interface: ISceneLoader
      Performs the loading and returns an array with the entities loaded.
      Returns:
      The loaded entities.
      Throws:
      FileNotFoundException
    • convertToDoubleArray

      public double[][][] convertToDoubleArray(com.badlogic.gdx.utils.JsonValue json, int size, int d)
    • setName

      public void setName(String name)
    • setDescription

      public void setDescription(String description)
    • setParams

      public void setParams(Map<String,Object> params)