From 6fe4972aa48a29d0aafee0461ccd6c635ca9ee6c Mon Sep 17 00:00:00 2001 From: Sophia Pearson Date: Mon, 23 May 2022 00:02:58 +0200 Subject: commands: add basic command parser infrastructure --- Scripts/Command.cs | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'Scripts/Command.cs') diff --git a/Scripts/Command.cs b/Scripts/Command.cs index 4a7ce58..e784576 100644 --- a/Scripts/Command.cs +++ b/Scripts/Command.cs @@ -1,7 +1,25 @@ +using Godot; + namespace Texty.Scripts { - public class Command + public enum CommandType { - + Look + } + + public class Command : Object + { + public Command() + { + } + + public Command(CommandType type, string[] arguments) + { + RawArguments = arguments; + Type = type; + } + + public string[] RawArguments { get; } + public CommandType Type { get; } } } \ No newline at end of file -- cgit v1.2.3