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

            commands[newCommand.token] = newCommand;

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

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