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.

The newest version!
package com.uwsoft.editor.renderer.data;

import com.badlogic.gdx.utils.Json;
import com.badlogic.gdx.utils.JsonWriter.OutputType;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;


public class SceneVO {

    public String sceneName = "";

    public CompositeVO composite;

    public boolean lightSystemEnabled = false;

    public float[] ambientColor = {1f, 1f, 1f, 1f};

    public PhysicsPropertiesVO physicsPropertiesVO = new PhysicsPropertiesVO();

    public ArrayList verticalGuides = new ArrayList();
    public ArrayList horizontalGuides = new ArrayList();

    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);
        lightSystemEnabled = vo.lightSystemEnabled;
    }

    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