make all of these private classes, forcing use of libgdx's AssetManager
This commit is contained in:
parent
5080a4f41d
commit
69e6c7f9af
|
@ -10,7 +10,7 @@ import com.badlogic.gdx.utils.Json;
|
|||
|
||||
import java.nio.ByteBuffer;
|
||||
|
||||
public class TilePrefabJsonLoader {
|
||||
class TilePrefabJsonLoader {
|
||||
public static JsonTilePrefab load(FileHandle file) {
|
||||
Json json = new Json();
|
||||
return json.fromJson(JsonTilePrefab.class, file);
|
||||
|
|
|
@ -16,7 +16,7 @@ import com.badlogic.gdx.utils.Json;
|
|||
|
||||
import java.nio.ByteBuffer;
|
||||
|
||||
public class TileMapJsonLoader {
|
||||
class TileMapJsonLoader {
|
||||
public static JsonTileMap load(FileHandle file) {
|
||||
Json json = new Json();
|
||||
return json.fromJson(JsonTileMap.class, file);
|
||||
|
|
|
@ -6,7 +6,7 @@ import com.badlogic.gdx.assets.AssetManager;
|
|||
import com.badlogic.gdx.files.FileHandle;
|
||||
import com.badlogic.gdx.utils.Json;
|
||||
|
||||
public class MaterialTileMappingJsonLoader {
|
||||
class MaterialTileMappingJsonLoader {
|
||||
public static JsonMaterialMapping load(FileHandle file) {
|
||||
Json json = new Json();
|
||||
return json.fromJson(JsonMaterialMapping.class, file);
|
||||
|
@ -29,9 +29,4 @@ public class MaterialTileMappingJsonLoader {
|
|||
|
||||
return materialMapping;
|
||||
}
|
||||
|
||||
public static MaterialTileMapping loadAndCreate(FileHandle file, AssetManager assetManager) {
|
||||
JsonMaterialMapping definition = load(file);
|
||||
return create(definition, assetManager);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ import com.badlogic.gdx.assets.AssetManager;
|
|||
import com.badlogic.gdx.files.FileHandle;
|
||||
import com.badlogic.gdx.utils.Json;
|
||||
|
||||
public final class TileMeshCollectionJsonLoader {
|
||||
class TileMeshCollectionJsonLoader {
|
||||
public static JsonTileMeshCollection load(FileHandle file) {
|
||||
Json json = new Json();
|
||||
return json.fromJson(JsonTileMeshCollection.class, file);
|
||||
|
|
|
@ -11,7 +11,7 @@ import com.badlogic.gdx.graphics.g3d.Model;
|
|||
import com.badlogic.gdx.math.Vector3;
|
||||
import com.badlogic.gdx.utils.Json;
|
||||
|
||||
public class TileMeshJsonLoader {
|
||||
class TileMeshJsonLoader {
|
||||
public static JsonTileMesh load(FileHandle file) {
|
||||
Json json = new Json();
|
||||
return json.fromJson(JsonTileMesh.class, file);
|
||||
|
@ -181,9 +181,4 @@ public class TileMeshJsonLoader {
|
|||
} else
|
||||
throw new RuntimeException("Unrecognized tile mesh type.");
|
||||
}
|
||||
|
||||
public static TileMesh loadAndCreate(FileHandle file, AssetManager assetManager) {
|
||||
JsonTileMesh definition = load(file);
|
||||
return create(definition, assetManager);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue