Scripts/Commands: Convert argument parsing of cheat commands to new system

Port From (https://github.com/TrinityCore/TrinityCore/commit/4aa1c742320d93bbebcb7cb737acc46ec3be6ffd)
This commit is contained in:
hondacrx
2022-06-03 22:35:16 -04:00
parent 59686e5f84
commit 5f16cea602
3 changed files with 121 additions and 143 deletions
+3 -1
View File
@@ -26,9 +26,11 @@ namespace Game.Chat
{
class CommandArgs
{
public static object[] Parse(Type[] parameterTypes, StringArguments args)
public static object[] Parse(CommandHandler handler, Type[] parameterTypes, StringArguments args)
{
List<object> arguments = new();
arguments.Add(handler);
//for each arg we need to see if its a:
//1: hyperlink
//2: Optional arg