summaryrefslogtreecommitdiff
path: root/Scripts/Command.cs
diff options
context:
space:
mode:
authorSophia Pearson <codergal89@gmail.com>2022-05-23 00:02:58 +0200
committerSophia Pearson <codergal89@gmail.com>2022-05-23 00:02:58 +0200
commit6fe4972aa48a29d0aafee0461ccd6c635ca9ee6c (patch)
tree30ff503136f1d41ccbb35d3bb9fa6ab92f1e839a /Scripts/Command.cs
parentf3c50714834d2d5cb204625c63aaeffb50bef236 (diff)
downloadtexty-6fe4972aa48a29d0aafee0461ccd6c635ca9ee6c.tar.xz
texty-6fe4972aa48a29d0aafee0461ccd6c635ca9ee6c.zip
commands: add basic command parser infrastructure
Diffstat (limited to 'Scripts/Command.cs')
-rw-r--r--Scripts/Command.cs22
1 files changed, 20 insertions, 2 deletions
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