diff options
author | Lizzy Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-09 21:51:22 -0700 |
---|---|---|
committer | Lizzy Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-09 21:51:22 -0700 |
commit | 42838864af3503f85cabc5dbd73b98a64d20cded (patch) | |
tree | 48dd75f0b9fcdc1fb8ec6db5ac2bec0a36b9afe7 /src/engine/systems/Collision.ts | |
parent | ce403459fa82025bd969d1938ed4034a10c2e751 (diff) | |
download | the-abstraction-engine-42838864af3503f85cabc5dbd73b98a64d20cded.tar.gz the-abstraction-engine-42838864af3503f85cabc5dbd73b98a64d20cded.zip |
prettier
Diffstat (limited to 'src/engine/systems/Collision.ts')
-rw-r--r-- | src/engine/systems/Collision.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/systems/Collision.ts b/src/engine/systems/Collision.ts index 0bc6f5c..7771ba3 100644 --- a/src/engine/systems/Collision.ts +++ b/src/engine/systems/Collision.ts @@ -28,7 +28,7 @@ export class Collision extends System { return; } const collidingBox = entity.getComponent<BoundingBox>( - ComponentNames.BoundingBox, + ComponentNames.BoundingBox ); let collidingGrid = entity.hasComponent(ComponentNames.Grid) ? entity.getComponent<Grid>(ComponentNames.Grid) @@ -39,7 +39,7 @@ export class Collision extends System { ComponentNames.BoundingBox, (otherEntity) => { const otherBoundingBox = otherEntity.getComponent<BoundingBox>( - ComponentNames.BoundingBox, + ComponentNames.BoundingBox ); let otherGrid = otherEntity.hasComponent(ComponentNames.Grid) ? otherEntity.getComponent<Grid>(ComponentNames.Grid) @@ -58,7 +58,7 @@ export class Collision extends System { if (collidingBox.isCollidingWith(otherBoundingBox)) { collidingWith.push(otherEntity); } - }, + } ); for (const collision of collidingWith) { |