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.
41 lines
587 B
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;
|
|
}
|
|
}
|
|
|