Beispiel #1
0
 protected void AddNode(HeroNodeDef node)
 {
     string[] strArray = node.Name.Split(new char[] { '.' });
     if (strArray.Length > 0)
     {
         GOMFolder root = this.root;
         foreach (string str in strArray)
         {
             root = root.CreateFolder(str);
         }
         root.SetNode(node);
     }
 }
Beispiel #2
0
        protected void AddNode(HeroNodeDef node)
        {
            string[] strArray = node.Name.Split(new char[1]
            {
                '.'
            });
            if (strArray.Length <= 0)
            {
                return;
            }
            GOMFolder gomFolder = this.root;

            foreach (string name in strArray)
            {
                gomFolder = gomFolder.CreateFolder(name);
            }
            gomFolder.SetNode(node);
        }