public static void AddKeyword(string name, ConsoleMethodFull method = null, int minimumParameters = -1, string help = "") { if (!Proxy.IsPlaying()) { return; } ConsoleCallback call = new ConsoleCallback(); call.full = method; call.help = help; call.minimumParameters = minimumParameters; Console.AddKeyword(name, call); }
public static void AddCvarMethod(string name, object scope, string dataName, string fullName = "", string help = "", ConsoleMethodFull method = null) { if (!Proxy.IsPlaying()) { return; } Console.AddCvar(name, scope, dataName, fullName, help); Console.cvars[name].method.full = method; }