18 lines
277 B
JavaScript
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);
|
|
}
|
|
}
|
|
|
|
}
|