|
|
|
@ -6,15 +6,10 @@ import java.util.logging.Level; |
|
|
|
|
|
|
|
|
|
import mightypork.gamecore.backends.lwjgl.LwjglBackend; |
|
|
|
|
import mightypork.gamecore.core.App; |
|
|
|
|
import mightypork.gamecore.core.DeltaMainLoop; |
|
|
|
|
import mightypork.gamecore.core.MainLoop; |
|
|
|
|
import mightypork.gamecore.core.events.MainLoopRequest; |
|
|
|
|
import mightypork.gamecore.core.init.InitTaskCrashHandler; |
|
|
|
|
import mightypork.gamecore.core.init.InitTaskIonizables; |
|
|
|
|
import mightypork.gamecore.core.init.InitTaskLog; |
|
|
|
|
import mightypork.gamecore.core.init.InitTaskLogHeader; |
|
|
|
|
import mightypork.gamecore.core.init.InitTaskMainLoop; |
|
|
|
|
import mightypork.gamecore.core.init.InitTaskResourceLoaderAsync; |
|
|
|
|
import mightypork.gamecore.core.plugins.screenshot.InitTaskPluginScreenshot; |
|
|
|
|
import mightypork.gamecore.core.plugins.screenshot.ScreenshotRequestListener; |
|
|
|
|
import mightypork.gamecore.gui.events.ViewportChangeEvent; |
|
|
|
@ -22,12 +17,12 @@ import mightypork.gamecore.gui.events.ViewportChangeListener; |
|
|
|
|
import mightypork.gamecore.resources.Res; |
|
|
|
|
import mightypork.rogue.RogueStateManager.RogueState; |
|
|
|
|
import mightypork.rogue.events.RogueStateRequest; |
|
|
|
|
import mightypork.rogue.init.AddResources; |
|
|
|
|
import mightypork.rogue.init.InitScreens; |
|
|
|
|
import mightypork.rogue.init.SetupConfig; |
|
|
|
|
import mightypork.rogue.init.SetupDisplay; |
|
|
|
|
import mightypork.rogue.init.SetupGlobalKeys; |
|
|
|
|
import mightypork.rogue.init.SetupWorkdir; |
|
|
|
|
import mightypork.rogue.init.RogueAddResources; |
|
|
|
|
import mightypork.rogue.init.RogueInitUI; |
|
|
|
|
import mightypork.rogue.init.RogueSetupConfig; |
|
|
|
|
import mightypork.rogue.init.RogueSetupDisplay; |
|
|
|
|
import mightypork.rogue.init.RogueSetupGlobalKeys; |
|
|
|
|
import mightypork.rogue.init.RogueSetupWorkdir; |
|
|
|
|
import mightypork.rogue.world.Inventory; |
|
|
|
|
import mightypork.utils.ion.Ion; |
|
|
|
|
import mightypork.utils.logging.Log; |
|
|
|
@ -65,10 +60,9 @@ public final class RogueApp extends App implements ViewportChangeListener, Scree |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
addInitTask(new InitTaskCrashHandler()); |
|
|
|
|
addInitTask(new SetupWorkdir(workdir)); |
|
|
|
|
addInitTask(new RogueSetupWorkdir(workdir)); |
|
|
|
|
|
|
|
|
|
addInitTask(new SetupConfig()); |
|
|
|
|
addInitTask(new RogueSetupConfig()); |
|
|
|
|
|
|
|
|
|
addInitTask(new InitTaskPluginScreenshot("screenshots")); |
|
|
|
|
|
|
|
|
@ -83,21 +77,10 @@ public final class RogueApp extends App implements ViewportChangeListener, Scree |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
addInitTask(new SetupDisplay()); |
|
|
|
|
addInitTask(new SetupGlobalKeys()); |
|
|
|
|
addInitTask(new InitTaskResourceLoaderAsync()); |
|
|
|
|
addInitTask(new AddResources()); |
|
|
|
|
|
|
|
|
|
addInitTask(new InitTaskMainLoop() { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected MainLoop getLoopImpl() |
|
|
|
|
{ |
|
|
|
|
return new DeltaMainLoop(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
addInitTask(new InitScreens()); |
|
|
|
|
addInitTask(new RogueSetupDisplay()); |
|
|
|
|
addInitTask(new RogueSetupGlobalKeys()); |
|
|
|
|
addInitTask(new RogueAddResources()); |
|
|
|
|
addInitTask(new RogueInitUI()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|