Removed unnecessary packets and created CoreManager

This commit is contained in:
Obique
2014-11-02 23:28:54 -06:00
committed by Obique
parent 236a99e8d6
commit e5bbb3dfcc
94 changed files with 38 additions and 5173 deletions
+38
View File
@@ -0,0 +1,38 @@
package services;
import me.joshlarson.control.Manager;
public class CoreManager extends Manager {
private long startTime;
private EngineManager engineManager;
public CoreManager() {
engineManager = new EngineManager();
addChildManager(engineManager);
}
/**
* Determines whether or not the core is operational
* @return TRUE if the core is operational, FALSE otherwise
*/
public boolean isOperational() {
return true;
}
@Override
public boolean initialize() {
startTime = System.nanoTime();
return super.initialize();
}
/**
* Returns the time in milliseconds since the server started initialization
* @return the core time represented as a double
*/
public double getCoreTime() {
return (System.nanoTime()-startTime)/1E6;
}
}