Versatile Java game engine with pluggable backends (this was used in Rogue, I think)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gamecore/src/mightypork/gamecore/core/init/InitTaskBackend.java

41 lines
587 B

package mightypork.gamecore.core.init;
import mightypork.gamecore.core.App;
/**
* Initialize backend. The main point of postponing this is to make sure the
* init is logged properly.
*
* @author Ondřej Hruška (MightyPork)
*/
public class InitTaskBackend extends InitTask {
@Override
public void run()
{
App.instance().getBackend().initialize();
}
@Override
public String getName()
{
return "backend";
}
@Override
public String[] getDependencies()
{
return new String[] { "log" };
}
@Override
public int getPriority()
{
return PRIO_EARLY;
}
}