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