Beispiel #1
0
 public static void AddKeyword(string name, ConsoleCallback call)
 {
     if (!Proxy.IsPlaying())
     {
         return;
     }
     if (Console.keywords.ContainsKey(name))
     {
         Log.Warning("[Console] Already has registered Keyword for -- " + name);
         return;
     }
     Console.keywords.Add(name, call);
 }
Beispiel #2
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);
        }