package com.badlogic.gdx.elita;

import com.badlogic.gdx.assets.AssetDescriptor;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.BitmapFont;

public class Assets {

    private Assets() {
    }

    public static void dispose() {
        manager.clear();
    }

    public static <T> T get (AssetDescriptor<T> descriptor) {

        if (!manager.isLoaded(descriptor.fileName, descriptor.type)) {

            manager.load(descriptor);

            manager.finishLoadingAsset(descriptor.fileName);

            if (BitmapFont.class == descriptor.type) {
                final BitmapFont font = (BitmapFont)manager.get(descriptor);
                font.getRegion().getTexture().setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);
            }
        }

        return manager.get(descriptor);
    }

    private static final AssetManager manager = new AssetManager();
}

@@ -110,21 +110,127 @@
 ts.Asset
-Manag
+LoaderParameters;%0Aimport com.badlogic.gdx.assets.AssetManager;%0Aimport com.badlogic.gdx.assets.loaders.AssetLoad
 er;%0Aimpo
@@ -988,24 +988,192 @@
 ptor);%0A    %7D
+%0A    %0A    public static %3CT, P extends AssetLoaderParameters%3CT%3E%3E void setLoader(Class%3CT%3E type, AssetLoader%3CT, P%3E loader) %7B%0A        manager.setLoader(type, loader);%0A    %7D
 %0A%0A    privat

Update Assets.java