com.uwsoft.editor.renderer.data.SpriterVO 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.
The newest version!
package com.uwsoft.editor.renderer.data;
import com.badlogic.ashley.core.Entity;
import com.uwsoft.editor.renderer.components.spriter.SpriterComponent;
public class SpriterVO extends MainItemVO {
public int entity;
public int animation;
public String animationName = "";
//wtf is this?
public float scale = 1f;
public SpriterVO() {
}
public SpriterVO(SpriterVO vo) {
super(vo);
entity = vo.entity;
animation = vo.animation;
animationName = vo.animationName;
scale = vo.scale;
}
@Override
public void loadFromEntity(Entity entity) {
super.loadFromEntity(entity);
SpriterComponent spriterComponent = entity.getComponent(SpriterComponent.class);
animationName = spriterComponent.animationName;
animation = spriterComponent.animation;
}
}