diff options
| author | Sophia Pearson <codergal89@gmail.com> | 2022-05-23 00:02:58 +0200 |
|---|---|---|
| committer | Sophia Pearson <codergal89@gmail.com> | 2022-05-23 00:02:58 +0200 |
| commit | 6fe4972aa48a29d0aafee0461ccd6c635ca9ee6c (patch) | |
| tree | 30ff503136f1d41ccbb35d3bb9fa6ab92f1e839a /Scripts/Command.cs | |
| parent | f3c50714834d2d5cb204625c63aaeffb50bef236 (diff) | |
| download | texty-6fe4972aa48a29d0aafee0461ccd6c635ca9ee6c.tar.xz texty-6fe4972aa48a29d0aafee0461ccd6c635ca9ee6c.zip | |
commands: add basic command parser infrastructure
Diffstat (limited to 'Scripts/Command.cs')
| -rw-r--r-- | Scripts/Command.cs | 22 |
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 |
