Beispiel #1
0
        public override bool Register(CCommand newCommand)
        {
            if (commands.ContainsKey(newCommand.token))
            {
                return(false);
            }

            commands[newCommand.token] = newCommand;

            return(true);
        }
Beispiel #2
0
 public static void Register()
 {
     CCommand cmd = new CCommand("clear", clearCmd);
     CCommand echo = new CCommand("echo", echoCmd);
 }
Beispiel #3
0
        private static string consoleHistory;   // HACK: not sure who should have this

        public static void Register(CCommand newCommand)
        {
            commands.Add(newCommand);
        }
Beispiel #4
0
 public abstract bool Register(CCommand newCommand);