Group world generation better

This commit is contained in:
austin 2022-10-10 21:07:28 -04:00
parent 678b2803fd
commit 7a7db7e831

View File

@ -265,7 +265,10 @@ public class LoadingThread extends Thread {
WindowUtils.recursiveSetVisible(Globals.elementManager.getWindow(WindowStrings.WINDOW_MENU_MAIN), false);
WindowUtils.replaceMainMenuContents(MenuGenerators.createEmptyMainMenu());
loadingWindow.setVisible(true);
//the juicy server part
//
//the juicy server GENERATION part
//
//init save structure
SaveUtils.createOrOverwriteSave("random_sp_world");
//create terrain
@ -279,6 +282,10 @@ public class LoadingThread extends Thread {
SaveUtils.loadSave("random_sp_world");
//start initializing game datastructures
Globals.dataCellManager = new DataCellManager(Globals.serverWorldData);
//initialize the "virtual" objects simulation
initMacroSimulation();
LoggerInterface.loggerEngine.INFO("run server: " + Globals.RUN_SERVER + " run client: " + Globals.RUN_CLIENT);
//init the data of the world
initDataCellManager();
@ -288,8 +295,6 @@ public class LoadingThread extends Thread {
Globals.clientUsername = "testuser";
Globals.clientPassword = AuthenticationManager.getHashedString("testpass");
initLocalConnection();
//initialize the "virtual" objects simulation
initMacroSimulation();
//initialize the "real" objects simulation
initMicroSimulation();
//collision engine