silphius/app/ecs/systems/behave.js
2024-07-21 11:20:16 -05:00

18 lines
277 B
JavaScript

import {System} from '@/ecs/index.js';
export default class Behave extends System {
static queries() {
return {
default: ['Behaving'],
};
}
tick(elapsed) {
for (const {Behaving} of this.select('default')) {
Behaving.tick(elapsed);
}
}
}