games.rednblack.editor.renderer.utils.HyperJson Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of runtime-libgdx Show documentation
Show all versions of runtime-libgdx Show documentation
HyperLap2D libGDX runtime to render exported scenes
The newest version!
package games.rednblack.editor.renderer.utils;
import com.badlogic.gdx.utils.Json;
import com.badlogic.gdx.utils.JsonWriter;
import games.rednblack.editor.renderer.data.*;
public class HyperJson {
private static Json json = null;
public static Json getJson() {
if (json == null){
json = new Json();
json.setIgnoreUnknownFields(true);
json.setOutputType(JsonWriter.OutputType.json);
json.addClassTag(CompositeItemVO.class.getSimpleName(), CompositeItemVO.class);
json.addClassTag(LightVO.class.getSimpleName(), LightVO.class);
json.addClassTag(ParticleEffectVO.class.getSimpleName(), ParticleEffectVO.class);
json.addClassTag(SimpleImageVO.class.getSimpleName(), SimpleImageVO.class);
json.addClassTag(SpriteAnimationVO.class.getSimpleName(), SpriteAnimationVO.class);
json.addClassTag(LabelVO.class.getSimpleName(), LabelVO.class);
json.addClassTag(Image9patchVO.class.getSimpleName(), Image9patchVO.class);
json.addClassTag(ColorPrimitiveVO.class.getSimpleName(), ColorPrimitiveVO.class);
}
return json;
}
private HyperJson() {
}
}