cc-haxe/src/kernel/Init.hx

23 lines
527 B
Haxe
Raw Normal View History

2022-02-21 00:50:19 +00:00
package kernel;
import util.Debug;
import kernel.ui.WindowManager;
import kernel.peripherals.Peripherals.Peripheral;
import kernel.net.Net;
class Init {
2022-02-21 14:35:37 +00:00
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();
2022-02-21 00:50:19 +00:00
2022-02-21 14:35:37 +00:00
WindowManager.instance = new WindowManager();
MainTerm.instance = new MainTerm();
Net.instance = new Net();
Log.init();
Debug.printBuildInfo();
}
2022-02-21 00:50:19 +00:00
}