UNPKG

ecsy-baby

Version:

A community project for easy implementation of ecsy in babylon.js

17 lines (13 loc) 416 B
import { World, WorldOptions } from "ecsy"; import { BabyEntity } from "./entity"; // import { Object3DComponent } from "./components/Object3DComponent.js"; export class BabyWorld extends World<BabyEntity> { entity: BabyEntity constructor(options: WorldOptions) { super(options) // super( // Object.assign({ entityClass: BabyWorld, }, options) // ); this.entity = this.createEntity("singleton") } }