summaryrefslogtreecommitdiff
path: root/src/engine/components/LambdaSpawn.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-03-05 22:00:04 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-03-05 22:00:04 -0700
commitce06fa7c29ba4e3d6137f7aa74fbfe45af0e8b73 (patch)
treeef17306b0fe5f2f957d9c37638a6af76236c7881 /src/engine/components/LambdaSpawn.ts
parent110fe21a2340365b7b7cb72f6f44ad13ed39f4ea (diff)
downloadthe-abstraction-engine-ce06fa7c29ba4e3d6137f7aa74fbfe45af0e8b73.tar.gz
the-abstraction-engine-ce06fa7c29ba4e3d6137f7aa74fbfe45af0e8b73.zip
refactor spawners
Diffstat (limited to 'src/engine/components/LambdaSpawn.ts')
-rw-r--r--src/engine/components/LambdaSpawn.ts29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/engine/components/LambdaSpawn.ts b/src/engine/components/LambdaSpawn.ts
deleted file mode 100644
index c45092a..0000000
--- a/src/engine/components/LambdaSpawn.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-import { Component, ComponentNames } from ".";
-import { Direction } from "../interfaces";
-
-export class LambdaSpawn extends Component {
- public direction: Direction | null;
- public spawnsLeft: number;
- public code: string = "";
-
- constructor(
- spawnsLeft: number,
- code: string,
- direction: Direction | null = null,
- ) {
- super(ComponentNames.LambdaSpawn);
-
- this.spawnsLeft = spawnsLeft;
- this.direction = direction;
- this.code = code;
- }
-
- public spawn(direction: Direction) {
- if (this.spawnsLeft <= 0) {
- return;
- }
-
- this.direction = direction;
- this.spawnsLeft -= 1;
- }
-}