com.uwsoft.editor.renderer.components.NodeComponent 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.components;
import com.badlogic.ashley.core.Component;
import com.badlogic.ashley.core.Entity;
import com.badlogic.gdx.utils.SnapshotArray;
public class NodeComponent implements Component {
public SnapshotArray children = new SnapshotArray(true, 1, Entity.class);
public void removeChild(Entity entity) {
children.removeValue(entity, false);
}
public void addChild(Entity entity) {
children.add(entity);
}
}