diff options
Diffstat (limited to 'Scripts/Game/Game.cs')
| -rw-r--r-- | Scripts/Game/Game.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Scripts/Game/Game.cs b/Scripts/Game/Game.cs new file mode 100644 index 0000000..50db736 --- /dev/null +++ b/Scripts/Game/Game.cs @@ -0,0 +1,25 @@ +using Godot; + +namespace Texty.Scripts.Game +{ + public class Game : Node + { + private Input Input => GetNodeOrNull<Input>($"%{nameof(Input)}"); + private Output Output => GetNodeOrNull<Output>($"%{nameof(Output)}"); + private StatusLine StatusLine => GetNodeOrNull<StatusLine>($"%{nameof(StatusLine)}"); + + public override void _Ready() + { + } + + public void OnCommandSubmitted(Command command) + { + Output.Push($"! {command}"); + } + + public void OnUnknownInputSubmitted(string text) + { + Output.Push($"? {text}"); + } + } +}
\ No newline at end of file |
