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

games.rednblack.editor.renderer.systems.action.logic.ComponentAction Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy