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

mmb.engine.worlds.world.DataLayer Maven / Gradle / Ivy

Go to download

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<

There is a newer version: 0.6
Show newest version
/**
 * 
 */
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 - 2024 Weber Informatics LLC | Privacy Policy