summaryrefslogtreecommitdiff
path: root/Scripts/CommandParser.cs
diff options
context:
space:
mode:
authorSophia Pearson <codergal89@gmail.com>2022-09-04 15:43:12 +0200
committerSophia Pearson <codergal89@gmail.com>2022-09-04 15:44:04 +0200
commit2f3abbb6f1141f15ef77ac27e431bc66bb0c7899 (patch)
tree17f7ee50161e1de1c11c6dd14a54a11614e7de03 /Scripts/CommandParser.cs
parent0967a4654c9fa67b5cfc19edf3cfc075bf6bde92 (diff)
downloadtexty-2f3abbb6f1141f15ef77ac27e431bc66bb0c7899.tar.xz
texty-2f3abbb6f1141f15ef77ac27e431bc66bb0c7899.zip
game: adapt scripts to new design
Diffstat (limited to 'Scripts/CommandParser.cs')
-rw-r--r--Scripts/CommandParser.cs23
1 files changed, 0 insertions, 23 deletions
diff --git a/Scripts/CommandParser.cs b/Scripts/CommandParser.cs
deleted file mode 100644
index 97d8025..0000000
--- a/Scripts/CommandParser.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-using System.Linq;
-using Godot;
-using Texty.Scripts.Commands;
-
-namespace Texty.Scripts
-{
- public class CommandParser : Node
- {
- public override void _Ready()
- {
- }
-
- public Command TryParse(string text)
- {
- var components = text.Split(' ');
- return components[0].ToLower() switch
- {
- "look" => new LookCommand(components.Skip(1).ToArray()),
- _ => null
- };
- }
- }
-} \ No newline at end of file