assassin-bug/framework/ecs/component.js

12 lines
245 B
JavaScript
Raw Normal View History

2022-11-26 01:22:02 +00:00
export class BaseComponent {
constructor() {
this.id = 0;
this.properties = {};
}
clone() {
const comp = new BaseComponent();
comp.properties = this.properties;
return comp;
}
}