@@ -0,0 +1,2062 @@
+package ca.blarg.gdx.tilemap3d.json.tilemesh;%0A%0Aimport ca.blarg.gdx.graphics.atlas.TextureAtlas;%0Aimport ca.blarg.gdx.tilemap3d.tilemesh.MaterialTileMapping;%0Aimport ca.blarg.gdx.tilemap3d.tilemesh.TileMesh;%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 TileMeshCollectionLoader extends AsynchronousAssetLoader%3CTileMeshCollection, TileMeshCollectionLoader.TileMeshCollectionParameters%3E %7B%0A%09public static class TileMeshCollectionParameters extends AssetLoaderParameters%3CTileMeshCollection%3E %7B%0A%09%7D%0A%0A%09public TileMeshCollectionLoader(FileHandleResolver resolver) %7B%0A%09%09super(resolver);%0A%09%7D%0A%0A%09JsonTileMeshCollection definition;%0A%09TileMeshCollection collection;%0A%0A%09@Override%0A%09public Array%3CAssetDescriptor%3E getDependencies(String fileName, FileHandle file, TileMeshCollectionParameters parameter) %7B%0A%09%09definition = TileMeshCollectionJsonLoader.load(file);%0A%09%09Array%3CAssetDescriptor%3E deps = new Array%3CAssetDescriptor%3E();%0A%0A%09%09if (definition.materials != null)%0A%09%09%09deps.add(new AssetDescriptor(definition.materials, MaterialTileMapping.class));%0A%09%09if (definition.textureAtlas != null)%0A%09%09%09deps.add(new AssetDescriptor(definition.textureAtlas, TextureAtlas.class));%0A%0A%09%09for (String tileMeshFile : definition.tiles) %7B%0A%09%09%09deps.add(new AssetDescriptor(tileMeshFile, TileMesh.class));%0A%09%09%7D%0A%0A%09%09return deps;%0A%09%7D%0A%0A%09@Override%0A%09public void loadAsync(AssetManager manager, String fileName, FileHandle file, TileMeshCollectionParameters parameter) %7B%0A%09%09collection = TileMeshCollectionJsonLoader.create(definition, manager);%0A%09%7D%0A%0A%09@Override%0A%09public TileMeshCollection loadSync(AssetManager manager, String fileName, FileHandle file, TileMeshCollectionParameters parameter) %7B%0A%09%09return collection;%0A%09%7D%0A%7D%0A

add TileMeshCollection libgdx asset loader