Exemplo n.º 1
0
 public PlayerDesc(ushort type, XElement e) : base(type, e)
 {
     Equipment = e.GetValue <string>("Equipment").CommaToArray <ushort>();
     Stats     = new Stat[8];
     for (var i = 0; i < Stats.Length; i++)
     {
         Stats[i] = new Stat(i, e);
     }
     if (e.HasElement("UnlockLevel") || e.HasElement("UnlockCost"))
     {
         Unlock = new UnlockClass(e);
     }
 }
Exemplo n.º 2
0
 public PlayerDesc(ushort type, XElement elem) : base(type, elem)
 {
     SlotTypes = elem.Element("SlotTypes").Value.CommaToArray <int>();
     Equipment = elem.Element("Equipment").Value.CommaToArray <ushort>();
     Stats     = new Stat[8];
     for (var i = 0; i < Stats.Length; i++)
     {
         Stats[i] = new Stat(i, elem);
     }
     if (elem.Element("UnlockLevel") != null ||
         elem.Element("UnlockCost") != null)
     {
         Unlock = new UnlockClass(elem);
     }
 }