UNPKG

@vole-engine/core

Version:
19 lines 418 B
export class Entity { constructor() { this.components = new Map(); this.initialized = false; } init(engine) { } update(engine, delta) { } draw(engine, delta) { } add(component) { this.components.set(component.constructor, component); } get(componentType) { return this.components.get(componentType); } } //# sourceMappingURL=entity.js.map