From d7eefa488135c477f39ea0953b032c7dcdad8bc7 Mon Sep 17 00:00:00 2001 From: Sophia Pearson Date: Sat, 26 Nov 2022 10:08:44 +0100 Subject: scripts: perform code cleanup actions --- Scripts/Game/Command.cs | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) (limited to 'Scripts/Game/Command.cs') diff --git a/Scripts/Game/Command.cs b/Scripts/Game/Command.cs index 20b8437..56d80a7 100644 --- a/Scripts/Game/Command.cs +++ b/Scripts/Game/Command.cs @@ -1,25 +1,24 @@ using Godot; -namespace Texty.Scripts.Game +namespace Texty.Scripts.Game; + +public enum CommandType +{ + Look +} + +public partial class Command : Object { - public enum CommandType + public Command() { - Look } - public partial class Command : Object + public Command(CommandType type, string[] arguments) { - public Command() - { - } - - public Command(CommandType type, string[] arguments) - { - RawArguments = arguments; - Type = type; - } - - public string[] RawArguments { get; } - public CommandType Type { get; } + RawArguments = arguments; + Type = type; } + + public string[] RawArguments { get; } + public CommandType Type { get; } } \ No newline at end of file -- cgit v1.2.3