@@ -0,0 +1,1481 @@
+package ca.blarg.gdx.tilemap3d.json.tilemap;%0A%0Aimport ca.blarg.gdx.tilemap3d.TileMap;%0Aimport ca.blarg.gdx.tilemap3d.tilemesh.TileMeshCollection;%0Aimport com.badlogic.gdx.assets.AssetDescriptor;%0Aimport com.badlogic.gdx.assets.AssetLoaderParameters;%0Aimport com.badlogic.gdx.assets.AssetManager;%0Aimport com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader;%0Aimport com.badlogic.gdx.assets.loaders.FileHandleResolver;%0Aimport com.badlogic.gdx.files.FileHandle;%0Aimport com.badlogic.gdx.utils.Array;%0A%0A@SuppressWarnings(%22unchecked%22)%0Apublic class TileMapLoader extends AsynchronousAssetLoader%3CTileMap, TileMapLoader.TileMapParameters%3E %7B%0A%09public static class TileMapParameters extends AssetLoaderParameters%3CTileMap%3E %7B%0A%09%7D%0A%0A%09public TileMapLoader(FileHandleResolver resolver) %7B%0A%09%09super(resolver);%0A%09%7D%0A%0A%09JsonTileMap definition;%0A%09TileMap map;%0A%0A%09@Override%0A%09public Array%3CAssetDescriptor%3E getDependencies(String fileName, FileHandle file, TileMapParameters parameter) %7B%0A%09%09definition = TileMapJsonLoader.load(file);%0A%09%09Array%3CAssetDescriptor%3E deps = new Array%3CAssetDescriptor%3E();%0A%09%09deps.add(new AssetDescriptor(definition.tileMeshes, TileMeshCollection.class));%0A%09%09return deps;%0A%09%7D%0A%0A%09@Override%0A%09public void loadAsync(AssetManager manager, String fileName, FileHandle file, TileMapParameters parameter) %7B%0A%09%09map = TileMapJsonLoader.create(definition, manager);%0A%09%7D%0A%0A%09@Override%0A%09public TileMap loadSync(AssetManager manager, String fileName, FileHandle file, TileMapParameters parameter) %7B%0A%09%09return map;%0A%09%7D%0A%7D%0A

add TileMap libgdx asset loader