diff options
Diffstat (limited to 'src/engine/entities/LambdaFactory.ts')
-rw-r--r-- | src/engine/entities/LambdaFactory.ts | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/engine/entities/LambdaFactory.ts b/src/engine/entities/LambdaFactory.ts index 770c096..6f75e90 100644 --- a/src/engine/entities/LambdaFactory.ts +++ b/src/engine/entities/LambdaFactory.ts @@ -75,7 +75,7 @@ const syntaxErrorDecoration = Decoration.mark({ export class LambdaFactory extends Entity { private static spriteSpec: SpriteSpec = SPRITE_SPECS.get( - Sprites.LAMBDA_FACTORY, + Sprites.LAMBDA_FACTORY ) as SpriteSpec; private codeEditorState: CodeEditorState | null; @@ -99,8 +99,8 @@ export class LambdaFactory extends Entity { width: LambdaFactory.spriteSpec.width, height: LambdaFactory.spriteSpec.height, }, - 0, - ), + 0 + ) ); this.addComponent(new Text(spawns.toString())); @@ -110,8 +110,8 @@ export class LambdaFactory extends Entity { this.addComponent( new GridSpawn( this.spawns, - () => new FunctionBox({ x: 0, y: 0 }, this.code), - ), + () => new FunctionBox({ x: 0, y: 0 }, this.code) + ) ); this.addComponent(new Grid(gridPosition)); @@ -125,15 +125,15 @@ export class LambdaFactory extends Entity { height: LambdaFactory.spriteSpec.height, }, LambdaFactory.spriteSpec.msPerFrame, - LambdaFactory.spriteSpec.frames, - ), + LambdaFactory.spriteSpec.frames + ) ); this.addComponent( new Highlight( (direction) => this.onHighlight(direction), - () => this.onUnhighlight(), - ), + () => this.onUnhighlight() + ) ); } @@ -179,10 +179,10 @@ export class LambdaFactory extends Entity { const codeBox = document.getElementById("code")!; const syntaxError = document.getElementById("syntax-error")!; const canvas = document.getElementById( - Miscellaneous.CANVAS_ID, + Miscellaneous.CANVAS_ID ) as HTMLCanvasElement; const closeButton = document.getElementById( - "close-modal", + "close-modal" ) as HTMLButtonElement; closeButton.addEventListener("click", () => this.saveAndCloseCodeEditor()); |