diff options
Diffstat (limited to 'Scripts/CommandParser.cs')
| -rw-r--r-- | Scripts/CommandParser.cs | 23 |
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 |
