Group world generation better
This commit is contained in:
parent
678b2803fd
commit
7a7db7e831
@ -265,7 +265,10 @@ public class LoadingThread extends Thread {
|
|||||||
WindowUtils.recursiveSetVisible(Globals.elementManager.getWindow(WindowStrings.WINDOW_MENU_MAIN), false);
|
WindowUtils.recursiveSetVisible(Globals.elementManager.getWindow(WindowStrings.WINDOW_MENU_MAIN), false);
|
||||||
WindowUtils.replaceMainMenuContents(MenuGenerators.createEmptyMainMenu());
|
WindowUtils.replaceMainMenuContents(MenuGenerators.createEmptyMainMenu());
|
||||||
loadingWindow.setVisible(true);
|
loadingWindow.setVisible(true);
|
||||||
//the juicy server part
|
|
||||||
|
//
|
||||||
|
//the juicy server GENERATION part
|
||||||
|
//
|
||||||
//init save structure
|
//init save structure
|
||||||
SaveUtils.createOrOverwriteSave("random_sp_world");
|
SaveUtils.createOrOverwriteSave("random_sp_world");
|
||||||
//create terrain
|
//create terrain
|
||||||
@ -279,6 +282,10 @@ public class LoadingThread extends Thread {
|
|||||||
SaveUtils.loadSave("random_sp_world");
|
SaveUtils.loadSave("random_sp_world");
|
||||||
//start initializing game datastructures
|
//start initializing game datastructures
|
||||||
Globals.dataCellManager = new DataCellManager(Globals.serverWorldData);
|
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);
|
LoggerInterface.loggerEngine.INFO("run server: " + Globals.RUN_SERVER + " run client: " + Globals.RUN_CLIENT);
|
||||||
//init the data of the world
|
//init the data of the world
|
||||||
initDataCellManager();
|
initDataCellManager();
|
||||||
@ -288,8 +295,6 @@ public class LoadingThread extends Thread {
|
|||||||
Globals.clientUsername = "testuser";
|
Globals.clientUsername = "testuser";
|
||||||
Globals.clientPassword = AuthenticationManager.getHashedString("testpass");
|
Globals.clientPassword = AuthenticationManager.getHashedString("testpass");
|
||||||
initLocalConnection();
|
initLocalConnection();
|
||||||
//initialize the "virtual" objects simulation
|
|
||||||
initMacroSimulation();
|
|
||||||
//initialize the "real" objects simulation
|
//initialize the "real" objects simulation
|
||||||
initMicroSimulation();
|
initMicroSimulation();
|
||||||
//collision engine
|
//collision engine
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user