2020-03-25 03:47:04 +00:00
|
|
|
import { Select } from "./Applet/Init";
|
2020-05-03 01:20:54 +00:00
|
|
|
import { KeyName } from "./Applet/Keyboard";
|
2020-03-25 03:47:04 +00:00
|
|
|
import { BindTests } from "./Ecs/test";
|
2020-05-09 23:25:50 +00:00
|
|
|
import { Data } from "./Game/GameComponents";
|
2020-03-25 03:47:04 +00:00
|
|
|
import { Main } from "./Game/Main";
|
2020-05-03 01:20:54 +00:00
|
|
|
import { LoopbackServer } from "./Net/LoopbackServer";
|
2020-03-25 03:47:04 +00:00
|
|
|
|
2020-04-05 01:48:50 +00:00
|
|
|
/* // Hot Module Reloading stub, if that's viable
|
|
|
|
* declare const module: any;
|
|
|
|
* if(module.hot) {
|
|
|
|
* const gen = module.hot.data?.gen ?? 0;
|
|
|
|
* module.hot.accept();
|
|
|
|
* module.hot.dispose((data: any) => {
|
|
|
|
* data.gen = gen + 1;
|
|
|
|
* });
|
|
|
|
* }
|
|
|
|
*/
|
|
|
|
|
2020-05-03 01:20:54 +00:00
|
|
|
const server = new LoopbackServer<KeyName[], Data>();
|
|
|
|
|
|
|
|
Select(".GameCanvas").forEachCanvas((c, cx, keys) => new Main(c, cx, keys, server));
|
|
|
|
|
2020-03-25 03:47:04 +00:00
|
|
|
BindTests();
|