示例#1
0
        public static void writeinfo(this NORTHLORD nORTHLORD, string filename)
        {
            XDocument xDocument = new XDocument();
            XElement  xElement  = new XElement("name", nORTHLORD.Name, new XElement("LordHouse", nORTHLORD.LordHouse),
                                               new XElement("isalive", nORTHLORD.Isalive), new XElement("age", nORTHLORD.Age), new XElement("Profesion", nORTHLORD.profesion));

            xDocument.Add(xElement);
            xDocument.Save(filename);
        }
示例#2
0
 public HouseBolton(NORTHLORD _NorthLord)
 {
     Housecounter++;
     if (Housecounter > 1)
     {
         throw new Exception("can't be tow same house");
     }
     north.HouseBolton = this;
     NorthLord         = _NorthLord;
 }
示例#3
0
 public HouseStark(NORTHLORD _NorthLord)
 {
     north.HouseStark = this;
     NorthLord        = _NorthLord;
 }
示例#4
0
 public HouseHornwood(NORTHLORD _NorthLord)
 {
     north.HouseHornwood = this;
     NorthLord           = _NorthLord;
 }
示例#5
0
 public HouseReed(NORTHLORD _NorthLord)
 {
     north.HouseReed = this;
     NorthLord       = _NorthLord;
 }
示例#6
0
 public HouseMormont(NORTHLORD _NorthLord)
 {
     north.HouseMormont = this;
     NorthLord          = _NorthLord;
 }
示例#7
0
 public HouseGlover(NORTHLORD _NorthLord)
 {
     north.HouseGlover = this;
     NorthLord         = _NorthLord;
 }
示例#8
0
 public HouseCerwyn(NORTHLORD _NorthLord)
 {
     north.HouseCerwyn = this;
     NorthLord         = _NorthLord;
 }