From d62e958d6918093843d48ea74df002fba9bfbe6e Mon Sep 17 00:00:00 2001 From: cha0s Date: Tue, 11 Jun 2024 02:56:29 -0500 Subject: [PATCH] refactor: no queries --- app/ecs-systems/calculate-aabbs.js | 6 ------ app/ecs-systems/follow-camera.js | 6 ------ 2 files changed, 12 deletions(-) diff --git a/app/ecs-systems/calculate-aabbs.js b/app/ecs-systems/calculate-aabbs.js index 348b054..1d0a4e8 100644 --- a/app/ecs-systems/calculate-aabbs.js +++ b/app/ecs-systems/calculate-aabbs.js @@ -2,12 +2,6 @@ import {System} from '@/ecs/index.js'; export default class CalculateAabbs extends System { - static queries() { - return { - default: ['Position', 'VisibleAabb'], - }; - } - tick() { const {diff} = this.ecs; for (const id in diff) { diff --git a/app/ecs-systems/follow-camera.js b/app/ecs-systems/follow-camera.js index 68725c1..14a8ee2 100644 --- a/app/ecs-systems/follow-camera.js +++ b/app/ecs-systems/follow-camera.js @@ -3,12 +3,6 @@ import {System} from '@/ecs/index.js'; export default class FollowCamera extends System { - static queries() { - return { - default: ['Camera', 'Position'], - }; - } - reindex(entities) { super.reindex(entities); for (const id of entities) {