All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.uwsoft.editor.renderer.data.SceneVO Maven / Gradle / Ivy

Go to download

overlap2d-runtime-libgdx provides functionality to load, manipulate and render scenes generated by Overlap2D.

There is a newer version: 0.1.1
Show newest version
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