comparison api/Factories/Xml/WarFoundryXmlSaver.cs @ 107:c4ee96a91018

Re #53: Add XML saver * Actually add unit elements, since creating them doesn't add them as well!
author IBBoard <dev@ibboard.co.uk>
date Fri, 21 Aug 2009 19:51:24 +0000
parents 9bf5eff0992a
children 2060f23abee9
comparison
equal deleted inserted replaced
106:9bf5eff0992a 107:c4ee96a91018
104 104
105 if (!unit.Race.Equals(toSave.Race)) 105 if (!unit.Race.Equals(toSave.Race))
106 { 106 {
107 unitElem.SetAttribute("race", unit.Race.ID); 107 unitElem.SetAttribute("race", unit.Race.ID);
108 } 108 }
109
110 units.AppendChild(unitElem);
109 } 111 }
110 112
111 return doc.OuterXml; 113 return doc.OuterXml;
112 } 114 }
113 } 115 }