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

com.uwsoft.editor.renderer.components.NodeComponent Maven / Gradle / Ivy

Go to download

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);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy