Package com.badlogic.gdx.utils.Json

Examples of com.badlogic.gdx.utils.Json.ReadOnlySerializer


        float a = json.readValue("a", float.class, 1f, jsonData);
        return new Color(r, g, b, a);
      }
    });

    json.setSerializer(TintedDrawable.class, new ReadOnlySerializer() {
      public Object read (Json json, JsonValue jsonData, Class type) {
        String name = json.readValue("name", String.class, jsonData);
        Color color = json.readValue("color", Color.class, jsonData);
        return newDrawable(name, color);
      }
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.utils.Json.ReadOnlySerializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.