mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-18 08:02:56 -04:00
Added shutdown requested mechanism
This commit is contained in:
@@ -41,8 +41,10 @@ public class CoreManager extends Manager {
|
||||
private GalacticManager galacticManager;
|
||||
private Galaxy galaxy;
|
||||
private long startTime;
|
||||
private boolean shutdownRequested;
|
||||
|
||||
public CoreManager() {
|
||||
shutdownRequested = false;
|
||||
galaxy = getGalaxy();
|
||||
if (galaxy != null) {
|
||||
engineManager = new EngineManager(galaxy);
|
||||
@@ -61,6 +63,10 @@ public class CoreManager extends Manager {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean isShutdownRequested() {
|
||||
return shutdownRequested;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean initialize() {
|
||||
startTime = System.nanoTime();
|
||||
|
||||
Reference in New Issue
Block a user