Пример #1
0
        public void addCommands(Tree commandTree)
        {
            Log.Trace("Adding command tree " + commandTree.Word, "addCommands");

            if (commandTree == null) return;
            foreach (Tree storedTree in CommandTrees) {
                if (storedTree.Word == commandTree.Word) {
                    Log.Warning("Failed to register new chat command tree " +
                        commandTree.Word +", collides with existing.",
                        "addCommands");
                    return;
                }
            }
            commandTree.Refresh(LocalSecurity);
            CommandTrees.Add(commandTree);
        }
Пример #2
0
 public void addBranch(Tree branch)
 {
     addChild(branch as Node);
 }