diff api/Exporters/WarFoundryHtmlExporter.cs @ 143:7f13ffcb8765 WarFoundry_v0.1beta2_Winforms

Re #164: Show unit cost in army tree * Do prep work and create "ICostedWarFoundryObject" interface that defines objects with a "Points" property * Implement new interface where necessary * Deprecate old variations on "points value" * Remove references to deprecated code
author IBBoard <dev@ibboard.co.uk>
date Sat, 19 Sep 2009 19:42:53 +0000
parents 57f7b80757ea
children dd892567f054
line wrap: on
line diff
--- a/api/Exporters/WarFoundryHtmlExporter.cs	Sat Sep 19 14:12:57 2009 +0000
+++ b/api/Exporters/WarFoundryHtmlExporter.cs	Sat Sep 19 19:42:53 2009 +0000
@@ -52,7 +52,7 @@
 			XmlElement body = doc.CreateElement("body");
 			html.AppendChild(body);
 			XmlElement header = doc.CreateElement("h1");
-			header.InnerText = Translation.GetTranslation("armyHtmlOutputBodyHeader", "{0} - {1}pts", army.Name, army.PointsTotal);
+			header.InnerText = Translation.GetTranslation("armyHtmlOutputBodyHeader", "{0} - {1}pts", army.Name, army.Points);
 			body.AppendChild(header);
 			
 			foreach (XmlElement table in CreateTables(army, doc))
@@ -152,7 +152,7 @@
 			row.AppendChild(notes);
 			
 			XmlElement points = doc.CreateElement("td");
-			points.InnerText = unit.PointsValue.ToString();
+			points.InnerText = unit.Points.ToString();
 			row.AppendChild(points);
 			
 			return row;