@vole-engine/core
Version:
Tiny 2D game engine
19 lines • 418 B
JavaScript
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