summaryrefslogtreecommitdiff
path: root/src/engine/components/LambdaSpawn.ts
diff options
context:
space:
mode:
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;
- }
-}