Package gaiasky.data
Class GeoJsonLoader
java.lang.Object
gaiasky.data.AbstractSceneLoader
gaiasky.data.GeoJsonLoader
- All Implemented Interfaces:
ISceneLoader
GeoJSON data loader.
-
Field Summary
Fields inherited from class gaiasky.data.AbstractSceneLoader
datasetDirectory, dataSource, filePaths, index, loggedArchetypes, parentName, scene
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble[][][]
convertToDoubleArray
(com.badlogic.gdx.utils.JsonValue json, int size, int d) com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity>
loadData()
Performs the loading and returns an array with the entities loaded.void
setDescription
(String description) void
void
Methods inherited from class gaiasky.data.AbstractSceneLoader
initialize, initialize, initialize, setIndex, setParentName
-
Constructor Details
-
GeoJsonLoader
public GeoJsonLoader()
-
-
Method Details
-
loadData
public com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity> loadData() throws FileNotFoundExceptionDescription 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
-
setDescription
-
setParams
-