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