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); }
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); }
public XMLLevel(XMLTree tree) { this.tree = tree; this.currentLevel = tree.Child(0); this.currentSublevel = currentLevel.SomeChild("sublevel", null); }