summaryrefslogtreecommitdiff
path: root/src/engine/Game.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/Game.ts')
-rw-r--r--src/engine/Game.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/Game.ts b/src/engine/Game.ts
index ab2ea64..fd8be7d 100644
--- a/src/engine/Game.ts
+++ b/src/engine/Game.ts
@@ -48,7 +48,7 @@ export class Game {
public forEachEntityWithComponent(
componentName: string,
- callback: (entity: Entity) => void,
+ callback: (entity: Entity) => void
) {
this.componentEntities.get(componentName)?.forEach((entityId) => {
const entity = this.getEntity(entityId);
@@ -84,12 +84,12 @@ export class Game {
if (!this.componentEntities.has(component.name)) {
this.componentEntities.set(
component.name,
- new Set<string>([entity.id]),
+ new Set<string>([entity.id])
);
return;
}
this.componentEntities.get(component.name)?.add(entity.id);
- }),
+ })
);
this.systemOrder.forEach((systemName) => {