use of io.github.voidzombie.nhglib.data.models.serialization.SceneJson in project nhglib by VoidZombie.
the class SceneLoader method getScene.
private Scene getScene(byte[] bytes) {
Scene scene = null;
try {
String json = new String(bytes, "UTF-8");
SceneJson sceneJson = new SceneJson(entities);
sceneJson.parse(new JsonReader().parse(json).get("scene"));
scene = sceneJson.get();
} catch (UnsupportedEncodingException e) {
if (Nhg.debugLogs)
e.printStackTrace();
}
return scene;
}
Aggregations