public void ParseXML(XML.XMLNode x) { foreach (XMLNode node in x.SelectList("equiptype")) { EquipType et = node.SelectEnum <EquipType>("type"); int slots = node.SelectInt("slots", 1); equipSlots.Add(et, new EquipSlot(slots)); filterSlots.Add(et); } }
public void ParseXML(XML.XMLNode x) { foreach (XMLNode node in x.SelectList("spell")) { string spellName = node.SelectString("name"); Spell s = node.Select <Spell>(); this.Add(spellName, s); if (!BigBoss.Objects.PlayerSpells.ContainsKey(spellName)) //this is givin' us every spell for the time being, should be removed when Player is properly parsed { BigBoss.Objects.PlayerSpells.Add(spellName, s); } } }
public void ParseXML(XML.XMLNode node) { Name = node.SelectString("name"); minNumItems = node.SelectInt("min", 0); maxNumItems = node.SelectInt("max", 1); foreach (XML.XMLNode x in node.SelectList("entry")) { string item = x.SelectString("item"); double probability = x.SelectDouble("probability"); int count = x.SelectInt("count"); int level = x.SelectInt("level"); ItemHolder ih = new ItemHolder(item, count); Add(ih, probability, false, (ushort)level); } foreach (XML.XMLNode x in node.SelectList("ref")) { refs.Add(x.SelectString("name")); } }
protected override void ParseParams(XML.XMLNode x) { finishVisual = x.SelectString("finishvisual"); }
protected override void ParseParams(XML.XMLNode x) { }
protected override void ParseParams(XML.XMLNode x) { speed = x.SelectInt("speed"); startVisual = x.SelectString("startvisual"); finishVisual = x.SelectString("finishvisual"); }
public void ParseXML(XML.XMLNode x) { min = x.SelectInt("min"); max = x.SelectInt("max", 1); }
protected override void ParseParams(XML.XMLNode x) { strength = x.SelectFloat("strength"); }