示例#1
0
        public bool HasIntro(String levelname)
        {
            LevelTag name = new LevelTag(levelname);

            levelTag = name;

            XMLTree foundLevel = tree.SomeChild("level", name.Level);

            if (foundLevel == null)
            {
                return(false);
            }

            XMLTree foundSubLevel = foundLevel.SomeChild("sublevel", "main");

            if (foundSubLevel == null)
            {
                return(false);
            }

            return(true);
        }
示例#2
0
        public bool SetLevel(String tag)
        {
            LevelTag name = new LevelTag(tag);

            levelTag = name;

            XMLTree foundLevel = tree.SomeChild("level", name.Level);

            if (foundLevel == null)
            {
                return(false);
            }
            this.currentLevel = foundLevel;

            XMLTree foundSubLevel = foundLevel.SomeChild("sublevel", name.Sublevel);

            if (foundSubLevel == null)
            {
                return(false);
            }
            this.currentSublevel = foundSubLevel;

            return(true);
        }
示例#3
0
 public XMLLevel(XMLTree tree)
 {
     this.tree            = tree;
     this.currentLevel    = tree.Child(0);
     this.currentSublevel = currentLevel.SomeChild("sublevel", null);
 }