Core: SOme code cleanup, more to follow.

This commit is contained in:
hondacrx
2021-03-20 22:48:48 -04:00
parent 62f554f2e0
commit 62ec699ec6
318 changed files with 5080 additions and 5125 deletions
+3 -3
View File
@@ -71,7 +71,7 @@ namespace Game.Chat
static bool SetDataForCommandInTable(ICollection<ChatCommand> table, string text, uint permission, string help, string fullcommand)
{
StringArguments args = new StringArguments(text);
StringArguments args = new(text);
string cmd = args.NextString().ToLower();
foreach (var command in table)
@@ -140,7 +140,7 @@ namespace Game.Chat
return _commands.Values;
}
static SortedDictionary<string, ChatCommand> _commands = new SortedDictionary<string, ChatCommand>();
static SortedDictionary<string, ChatCommand> _commands = new();
}
public delegate bool HandleCommandDelegate(StringArguments args, CommandHandler handler);
@@ -192,6 +192,6 @@ namespace Game.Chat
public bool AllowConsole;
public HandleCommandDelegate Handler;
public string Help;
public List<ChatCommand> ChildCommands = new List<ChatCommand>();
public List<ChatCommand> ChildCommands = new();
}
}