games.rednblack.editor.renderer.systems.action.logic.ComponentAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of runtime-libgdx Show documentation
Show all versions of runtime-libgdx Show documentation
HyperLap2D libGDX runtime to render exported scenes
The newest version!
package games.rednblack.editor.renderer.systems.action.logic;
import games.rednblack.editor.renderer.systems.action.data.ComponentData;
/**
* Created by aurel on 19/02/16.
*/
public abstract class ComponentAction extends DelegateAction {
@Override
public boolean act(float delta, int entity, T actionData) {
if (actionData.linkedComponentMapper == null || actionData.linkedComponentMapper.has(entity)) {
return delegate(delta, entity, actionData);
} else {
return true;
}
}
}