Exemplo n.º 1
0
 public void ParseXML(XMLNode x)
 {
     Weight        = x.SelectInt("weight");
     Cost          = x.SelectInt("cost");
     Nutrition     = x.SelectInt("nutrition");
     damage        = x.Select <Damage>("damage");
     EquipType     = x.SelectEnum <EquipType>("equiptype");
     NumberOfSlots = x.SelectInt("slots", 1);
 }
Exemplo n.º 2
0
 public void ParseXML(XMLNode x)
 {
     Strength     = x.SelectInt("strength");
     Charisma     = x.SelectInt("charisma");
     Intelligence = x.SelectInt("intelligence");
     Wisdom       = x.SelectInt("wisdom");
     Dexterity    = x.SelectInt("dexterity");
     Constitution = x.SelectInt("constitution");
     Size         = x.SelectEnum <Size>("size");
 }