com.uwsoft.editor.renderer.data.MainItemVO 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 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