com.uwsoft.editor.renderer.data.ParticleEffectVO 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.particle.ParticleComponent;
public class ParticleEffectVO extends MainItemVO {
public String particleName = "";
public float particleWidth = 100;
public float particleHeight = 100;
//TODO add other ParticleEffect properties
public ParticleEffectVO() {
super();
}
public ParticleEffectVO(ParticleEffectVO vo) {
super(vo);
particleName = new String(vo.particleName);
}
@Override
public void loadFromEntity(Entity entity) {
super.loadFromEntity(entity);
ParticleComponent particleComponent = entity.getComponent(ParticleComponent.class);
particleName = particleComponent.particleName;
}
}