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

com.uwsoft.editor.renderer.data.MainItemVO 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 java.util.Arrays;


public class MainItemVO {
	public String itemIdentifier = "";
	public String itemName = "";
    public String[] tags = null;
    public String customVars = "";
	public float x; 
	public float y;
	public float scaleX	=	1f; 
	public float scaleY	=	1f;
	public float rotation;
	public int zIndex = 0;
	public String layerName = "";
	public float[] tint = null;
	public boolean isFlipedH = false;
	public boolean isFlipedV = false;
	
	public String meshId = "-1";
	public PhysicsBodyDataVO physicsBodyData = null;
	
	public MainItemVO() {
		
	}
	
	public MainItemVO(MainItemVO vo) {
		itemIdentifier = new String(vo.itemIdentifier);
		itemName = new String(vo.itemName);
        if(tags != null) tags = Arrays.copyOf(vo.tags, vo.tags.length);
        customVars = new String(vo.customVars);
		x = vo.x; 
		y = vo.y;
		rotation = vo.rotation;
		zIndex = vo.zIndex;
		layerName = new String(vo.layerName);
		//if(tint != null) tint = Arrays.copyOf(vo.tint, vo.tint.length);
		if(vo.tint != null) tint = Arrays.copyOf(vo.tint, vo.tint.length);
		isFlipedH 	= vo.isFlipedH;
		isFlipedV 	= vo.isFlipedV;
		scaleX 		= vo.scaleX;
		scaleY 		= vo.scaleY;
		
		meshId = vo.meshId;
		if(vo.physicsBodyData != null){
			physicsBodyData = new PhysicsBodyDataVO(vo.physicsBodyData);
		}
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy