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/InitTaskCustom.java

46 lines
648 B

package mightypork.gamecore.core.init;
/**
* Init task that can be extended to initialize additional stuff in the
* application.
*
* @author Ondřej Hruška (MightyPork)
*/
public abstract class InitTaskCustom extends InitTask {
private final String name;
private final String[] deps;
public InitTaskCustom(String name)
{
this(name, null);
}
public InitTaskCustom(String name, String[] dependencies)
{
this.name = name;
this.deps = dependencies;
}
@Override
public abstract void run();
@Override
public String getName()
{
return name;
}
@Override
public String[] getDependencies()
{
return deps;
}
}