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); }
public void addCommand(ChatCommand newCmd) { commands.Add(newCmd.name, newCmd); }