mmb.engine.worlds.world.DataLayer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of multimachinebuilder Show documentation
Show all versions of multimachinebuilder Show documentation
Dependency for the MultiMachineBuilder, a voxel game about building an industrial empire in a finite world.
THIS RELEASE IS NOT PLAYABLE. To play the game, donwload from >ITCH.IO LINK HERE< or >GH releases link here<
/**
*
*/
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() {};
}