
mmb.engine.worlds.world.DataLayer Maven / Gradle / Ivy
/**
*
*/
package mmb.engine.worlds.world;
import mmb.beans.Saver;
import monniasza.collects.Identifiable;
/**
* A container to help implement data layers
* @author oskar
* @param type of enclosing game object
*/
public abstract class DataLayer implements Identifiable, Saver {
/**
* Creates a world data alyer
* @param world
*/
protected DataLayer(T world) {
this.world = world;
}
private final T world;
@Override
public final T id() {
return world;
}
/** Invoked on start-up */
public void startup() {}
/** Invoked on shutdown */
public void shutdown() {}
/** Invoked on every tick */
public void cycle() {}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy