vertecs
Version:
A typescript entity-component-system framework
17 lines (11 loc) • 400 B
text/typescript
import { EcsManager } from "../../../../src";
import ExampleClientNetworkSystem from "./ExampleClientNetworkSystem";
const ecsManager = new EcsManager();
Object.assign(global, { WebSocket: (await import("ws")).WebSocket });
const start = async () => {
await ecsManager.addSystem(
new ExampleClientNetworkSystem("ws://localhost:8080")
);
await ecsManager.start();
};
start();