Exemplo n.º 1
0
        public CommandProcessor(Action<string> printMethod)
        {
            this.printMethod = printMethod;

            commands = new Hashtable();

            ChatCommand helpCmd = new ChatCommand("help",
                new Action<string[]>(help),
                "Shows this message. Optional help <cmd> to get help for that command",
                "");
            addCommand(helpCmd);
        }
Exemplo n.º 2
0
 public void addCommand(ChatCommand newCmd)
 {
     commands.Add(newCmd.name, newCmd);
 }