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

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

Introduction

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

Prototype

public void writeObjectStart(Class actualType, Class knownType) 

Source Link

Document

Starts writing an object, writing the actualType to a field if needed.

Usage

From source file:es.eucm.ead.engine.assets.serializers.DefaultSerializer.java

License:Open Source License

@Override
public void write(Json json, T object, Class knownType) {
    json.writeObjectStart(object.getClass(), knownType);
    json.writeFields(object);//w w w.j  ava  2s. co  m
    json.writeObjectEnd();
}