public void ParseXML(XMLNode x) { foreach (XMLNode xnode in x) { PlayerProfessions prof = xnode.SelectEnum <PlayerProfessions>("name"); titles[(int)prof] = new Titles(); Titles t = titles[(int)prof]; t.parseXML(xnode); } }
public BehaviorCraftingProfession(SkillLine skill, int skillid) { Skill = skill; SkillId = skillid; SkillBookId = PlayerProfessions.DraenorProfessionSpellIds[Skill]; Currency = PlayerProfessions.GetWorkOrderItemAndQuanityRequired(skillid); Criteria += () => (BaseSettings.CurrentSettings.BehaviorProfessions && BaseSettings.CurrentSettings.ProfessionSpellIds.Contains(SkillId) && PlayerProfessions.HasRequiredCurrency(Currency) && !Spell.Cooldown); }
public void ParseXML(XMLNode root) { string type = root.Key.ToUpper(); switch (type) { case "ITEMS": Items.Parse(root); break; case "NPCS": NPCs.Parse(root); break; case "MATERIALS": Materials.Parse(root); break; case "STRINGS": ParseStrings(root); break; case "TITLES": PlayerProfessions.ParseXML(root); break; case "LEVELEDITEMS": LeveledItems.Parse(root); break; default: if (BigBoss.Debug.logging(Logs.XML)) { BigBoss.Debug.w(Logs.XML, "Basenode key " + root.Key + " did not exist as an option to parse. Node: " + root); } break; } }
public string getTitle(PlayerProfessions prof, int level) { return(titles[(int)prof].getTitle(level)); }