comparison API/Savers/Xml/WarFoundryXmlGameSystemSaver.cs @ 425:5b3e3fb11de9

Re #338: WarFoundry.API - Save System Data * Add saving of point abbreviations
author IBBoard <dev@ibboard.co.uk>
date Wed, 26 Oct 2011 15:39:55 +0100
parents 3c4a6403a88c
children 61fae5cbba02
comparison
equal deleted inserted replaced
424:d992758b0150 425:5b3e3fb11de9
35 root.SetAttribute("id", XmlTools.GetAsciiXmlIdForString(toSave.ID)); 35 root.SetAttribute("id", XmlTools.GetAsciiXmlIdForString(toSave.ID));
36 root.SetAttribute("name", toSave.Name); 36 root.SetAttribute("name", toSave.Name);
37 root.SetAttribute("defaultArmySize", toSave.SystemArmyDefaultSize.ToString()); 37 root.SetAttribute("defaultArmySize", toSave.SystemArmyDefaultSize.ToString());
38 root.SetAttribute("warn", toSave.WarnOnError.ToString().ToLowerInvariant()); 38 root.SetAttribute("warn", toSave.WarnOnError.ToString().ToLowerInvariant());
39 root.SetAttribute("allowAllies", toSave.AllowAllies.ToString().ToLowerInvariant()); 39 root.SetAttribute("allowAllies", toSave.AllowAllies.ToString().ToLowerInvariant());
40 root.SetAttribute("defaultPtsAbbreviationSingular", toSave.SystemPtsAbbrevSingle);
41 root.SetAttribute("defaultPtsAbbreviationPlural", toSave.SystemPtsAbbrevPlural);
42 root.SetAttribute("defaultPtsNameSingular", toSave.SystemPtsNameSingle);
43 root.SetAttribute("defaultPtsNamePlural", toSave.SystemPtsNamePlural);
40 XmlElement cats = doc.CreateElement("categories"); 44 XmlElement cats = doc.CreateElement("categories");
41 root.AppendChild(cats); 45 root.AppendChild(cats);
42 46
43 foreach (Category cat in toSave.Categories) 47 foreach (Category cat in toSave.Categories)
44 { 48 {