public static void AddConCommand(string entry, Func <string[], string> command, string help = "No help available.", CommandBackend.CommandType conType = CommandBackend.CommandType.Normal) { commands.Add(entry, new ConCommand(command, help, conType)); }
public ConCommand(Func <string[], string> cb, string helpstring, CommandBackend.CommandType conType = CommandBackend.CommandType.Normal) { callback = cb; help = helpstring; type = conType; }