games.rednblack.editor.renderer.systems.action.logic.RunnableAction 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.RunnableData;
/**
* Created by ZeppLondon on 10/15/2015.
*/
public class RunnableAction extends ActionLogic {
@Override
public boolean act(float delta, int entity, T actionData) {
if (!actionData.ran) {
actionData.ran = true;
run(entity, actionData);
}
return true;
}
public void run(int entity, T actionData) {
if (actionData.runnable != null)
actionData.runnable.run(entity);
}
}