import * as THREE from 'three' import { System } from '../../src' import { ExampleEntity } from './example-entity' export class ExampleSystem extends System { onAdded(): void { const { EventManager } = this._app EventManager.subscribe('create-entity', (file) => { this.removeAllEntityAndHelpers() const entity = new ExampleEntity({ name: 'example-entity', position: new THREE.Vector3(0, 0, 0), rotation: new THREE.Euler(0, 0, 0), file }) this.addEntity(entity) }) } onRemoved(): void {} onUpdating(deltaTime: number): void {} }