Example usage for com.badlogic.gdx.utils Json getSerializer

List of usage examples for com.badlogic.gdx.utils Json getSerializer

Introduction

In this page you can find the example usage for com.badlogic.gdx.utils Json getSerializer.

Prototype

public <T> Serializer<T> getSerializer(Class<T> type) 

Source Link

Usage

From source file:es.eucm.ead.engine.assets.loaders.ExtendedSkin.java

License:Open Source License

@Override
protected Json getJsonLoader(FileHandle skinFile) {
    Json json = super.getJsonLoader(skinFile);
    Serializer<BitmapFont> defaultSerializer = json.getSerializer(BitmapFont.class);
    json.setSerializer(BitmapFont.class,
            new TTFBitmapFontSerializer(this, assets, defaultSerializer, skinFile));
    return json;/*from w ww. j av a  2 s.c  o  m*/
}