changeset 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
files api/Factories/Xml/WarFoundryXmlSaver.cs
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/api/Factories/Xml/WarFoundryXmlSaver.cs	Mon Aug 17 19:58:54 2009 +0000
     1.2 +++ b/api/Factories/Xml/WarFoundryXmlSaver.cs	Fri Aug 21 19:51:24 2009 +0000
     1.3 @@ -106,6 +106,8 @@
     1.4  				{
     1.5  					unitElem.SetAttribute("race", unit.Race.ID);
     1.6  				}
     1.7 +				
     1.8 +				units.AppendChild(unitElem);
     1.9  			}
    1.10  			
    1.11  			return doc.OuterXml;