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

            commands[newCommand.token] = newCommand;

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

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