com.uwsoft.editor.renderer.data.SceneVO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of overlap2d-runtime-libgdx Show documentation
Show all versions of overlap2d-runtime-libgdx Show documentation
overlap2d-runtime-libgdx provides functionality to load, manipulate and render scenes generated by Overlap2D.
package com.uwsoft.editor.renderer.data;
import com.badlogic.gdx.utils.Json;
import com.badlogic.gdx.utils.JsonWriter.OutputType;
import java.util.Arrays;
import java.util.HashMap;
public class SceneVO {
public String sceneName = "";
public CompositeVO composite;
public float[] ambientColor = {0.5f, 0.5f, 0.5f, 1f};
public HashMap libraryItems = new HashMap();
public PhysicsPropertiesVO physicsPropertiesVO = new PhysicsPropertiesVO();
public SceneVO() {
}
public SceneVO(SceneVO vo) {
sceneName = new String(vo.sceneName);
composite = new CompositeVO(vo.composite);
ambientColor = Arrays.copyOf(vo.ambientColor, vo.ambientColor.length);
physicsPropertiesVO = new PhysicsPropertiesVO(vo.physicsPropertiesVO);
}
public String constructJsonString() {
String str = "";
Json json = new Json();
json.setOutputType(OutputType.json);
str = json.toJson(this);
return str;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy