net.mostlyoriginal.api.manager.AbstractEntityFactorySystem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of contrib-jam Show documentation
Show all versions of contrib-jam Show documentation
Jam bundle of systems and components!
The newest version!
package net.mostlyoriginal.api.manager;
import com.artemis.BaseSystem;
import com.artemis.Entity;
import com.badlogic.gdx.maps.MapProperties;
/**
* Extend this system for entity instancing.
*
* @author Daan van Yperen
*/
public abstract class AbstractEntityFactorySystem extends BaseSystem {
/**
* Instance entity archetype.
*
* @param entity entity archetype to instance.
* @param cx x spawn location
* @param cy y spawn location
* @param properties map of map properties.
* @return main instanced entity.
*/
public abstract Entity createEntity(String entity, int cx, int cy, MapProperties properties);
@Override
protected void processSystem() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy