start using tinker
This commit is contained in:
22
src/kernel/Init.hx
Normal file
22
src/kernel/Init.hx
Normal file
@@ -0,0 +1,22 @@
|
||||
package kernel;
|
||||
|
||||
import util.Debug;
|
||||
import kernel.ui.WindowManager;
|
||||
import kernel.peripherals.Peripherals.Peripheral;
|
||||
import kernel.net.Net;
|
||||
|
||||
class Init {
|
||||
public static function initKernel() {
|
||||
// Init singeltons here because haxe is confused about the order to create them.
|
||||
KernelEvents.instance = new KernelEvents();
|
||||
Peripheral.instance = new Peripheral();
|
||||
|
||||
WindowManager.instance = new WindowManager();
|
||||
MainTerm.instance = new MainTerm();
|
||||
Net.instance = new Net();
|
||||
|
||||
Log.init();
|
||||
|
||||
Debug.printBuildInfo();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user