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); }
public HouseBolton(NORTHLORD _NorthLord) { Housecounter++; if (Housecounter > 1) { throw new Exception("can't be tow same house"); } north.HouseBolton = this; NorthLord = _NorthLord; }
public HouseStark(NORTHLORD _NorthLord) { north.HouseStark = this; NorthLord = _NorthLord; }
public HouseHornwood(NORTHLORD _NorthLord) { north.HouseHornwood = this; NorthLord = _NorthLord; }
public HouseReed(NORTHLORD _NorthLord) { north.HouseReed = this; NorthLord = _NorthLord; }
public HouseMormont(NORTHLORD _NorthLord) { north.HouseMormont = this; NorthLord = _NorthLord; }
public HouseGlover(NORTHLORD _NorthLord) { north.HouseGlover = this; NorthLord = _NorthLord; }
public HouseCerwyn(NORTHLORD _NorthLord) { north.HouseCerwyn = this; NorthLord = _NorthLord; }