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/entities/FunctionApplication.ts | |
parent | ce403459fa82025bd969d1938ed4034a10c2e751 (diff) | |
download | the-abstraction-engine-42838864af3503f85cabc5dbd73b98a64d20cded.tar.gz the-abstraction-engine-42838864af3503f85cabc5dbd73b98a64d20cded.zip |
prettier
Diffstat (limited to 'src/engine/entities/FunctionApplication.ts')
-rw-r--r-- | src/engine/entities/FunctionApplication.ts | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/engine/entities/FunctionApplication.ts b/src/engine/entities/FunctionApplication.ts index 24e4eec..d907eca 100644 --- a/src/engine/entities/FunctionApplication.ts +++ b/src/engine/entities/FunctionApplication.ts @@ -56,8 +56,8 @@ export class FunctionApplication extends Entity { y: 0, }, dimension, - 0, - ), + 0 + ) ); this.addComponent(new Grid(gridPosition)); @@ -70,8 +70,8 @@ export class FunctionApplication extends Entity { { x: 0, y: 0 }, dimension, FunctionApplication.spriteSpec.msPerFrame, - FunctionApplication.spriteSpec.frames, - ), + FunctionApplication.spriteSpec.frames + ) ); this.addComponent(new Colliding(this.handleCollision.bind(this))); @@ -94,7 +94,7 @@ export class FunctionApplication extends Entity { const gridSystem = game.getSystem<GridSystem>(SystemNames.Grid); const fail = () => { entityGrid.movingDirection = gridSystem.oppositeDirection( - entityGrid.previousDirection, + entityGrid.previousDirection ); entity.addComponent(entityGrid); @@ -103,10 +103,10 @@ export class FunctionApplication extends Entity { }; const applicationTerm = this.getComponent<LambdaTerm>( - ComponentNames.LambdaTerm, + ComponentNames.LambdaTerm ); const functionTerm = entity.getComponent<LambdaTerm>( - ComponentNames.LambdaTerm, + ComponentNames.LambdaTerm ); const newCode = applicationTerm.code.replace("_INPUT", functionTerm.code); let result: DebrujinifiedLambdaTerm | null = null; @@ -121,7 +121,7 @@ export class FunctionApplication extends Entity { const { dimension } = gridSystem; const nextPosition = gridSystem.getNewGridPosition( grid.gridPosition, - entityGrid.previousDirection, + entityGrid.previousDirection ); let applicationResultingEntity: Entity | null = null; // this should be its own function @@ -142,7 +142,7 @@ export class FunctionApplication extends Entity { game.removeEntity(entity.id); if (applicationResultingEntity) { const grid = applicationResultingEntity.getComponent<Grid>( - ComponentNames.Grid, + ComponentNames.Grid ); grid.movingDirection = entityGrid.previousDirection; applicationResultingEntity.addComponent(grid); |