yes command yesyes
This commit is contained in:
1 parent
88c69529fd
commit
62abc6a784
7 files changed
+142
-32
No files matched your search
+1
-19
@@ -25,25 +25,7 @@ namespace PemukulPaku
|
||||
|
||||
Player Player = new(User.FromName("test"));
|
||||
|
||||
while (true)
|
||||
{
|
||||
string? line = Console.ReadLine();
|
||||
|
||||
if (!string.IsNullOrEmpty(line))
|
||||
{
|
||||
foreach (Command cmd in CommandFactory.Commands)
|
||||
{
|
||||
if (line.StartsWith(cmd.Name.ToLower()))
|
||||
{
|
||||
List<string> args = line.Split(' ').ToList();
|
||||
args.RemoveAt(0);
|
||||
|
||||
cmd.Run(null, args.ToArray());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
ReadLine.GetInstance().Start();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user