summaryrefslogtreecommitdiff
path: root/src/engine/entities/Sign.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth@simponic.xyz>2025-03-02 16:32:01 -0700
committerElizabeth Hunt <elizabeth@simponic.xyz>2025-03-02 16:32:01 -0700
commitd8511f4ad3bc3a326de7f7af2fb8703d5f471e36 (patch)
treeaaf7a91a60eb7436f0d00883cd54ecb90d703d8e /src/engine/entities/Sign.ts
parent16eb0ad4d5d8b2ba915eae5190e6b0cfe8a1573c (diff)
downloadthe-abstraction-engine-d8511f4ad3bc3a326de7f7af2fb8703d5f471e36.tar.gz
the-abstraction-engine-d8511f4ad3bc3a326de7f7af2fb8703d5f471e36.zip
run prettier
Diffstat (limited to 'src/engine/entities/Sign.ts')
-rw-r--r--src/engine/entities/Sign.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/engine/entities/Sign.ts b/src/engine/entities/Sign.ts
index c85ad40..b5bbfd4 100644
--- a/src/engine/entities/Sign.ts
+++ b/src/engine/entities/Sign.ts
@@ -14,12 +14,12 @@ import { Coord2D } from "../interfaces";
export class Sign extends Entity {
private static spriteSpec: SpriteSpec = SPRITE_SPECS.get(
- Sprites.SIGN
+ Sprites.SIGN,
) as SpriteSpec;
constructor(
private readonly text: string,
- gridPosition: Coord2D
+ gridPosition: Coord2D,
) {
super(EntityNames.Sign);
@@ -34,8 +34,8 @@ export class Sign extends Entity {
{ x: 0, y: 0 },
dimension,
Sign.spriteSpec.msPerFrame,
- Sign.spriteSpec.frames
- )
+ Sign.spriteSpec.frames,
+ ),
);
this.addComponent(
@@ -45,8 +45,8 @@ export class Sign extends Entity {
y: 0,
},
dimension,
- 0
- )
+ 0,
+ ),
);
this.addComponent(new Grid(gridPosition));
@@ -54,7 +54,7 @@ export class Sign extends Entity {
this.addComponent(new Colliding());
this.addComponent(
- new Highlight(this.onHighlight.bind(this), this.onUnhighlight.bind(this))
+ new Highlight(this.onHighlight.bind(this), this.onUnhighlight.bind(this)),
);
}
@@ -78,7 +78,7 @@ export class Sign extends Entity {
contentInit: {
content: `<p>${this.text}</p>`,
},
- })
+ }),
);
}
}