Exemple #1
0
        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);
        }
Exemple #2
0
 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;
 }