vertecs
Version:
A typescript entity-component-system framework
15 lines (10 loc) • 363 B
text/typescript
import { EcsManager } from "../../../../src";
import ExampleServerNetworkSystem from "./ExampleServerNetworkSystem";
const ecsManager = new EcsManager();
const start = async () => {
console.log("Starting server...");
await ecsManager.addSystem(new ExampleServerNetworkSystem());
await ecsManager.start();
console.log("Started !");
};
start();