diff api/Factories/Xml/WarFoundryXmlFactory.cs @ 261:b9b8b0e60c31

Re #281: Export multiple stat lines in HTML * Add initial version of multiple stat lines per unit - still needs some work Also: * Line ending cleanup
author IBBoard <dev@ibboard.co.uk>
date Sat, 29 May 2010 20:03:17 +0000
parents d1068f4b6d1c
children 3854c26073c4
line wrap: on
line diff
--- a/api/Factories/Xml/WarFoundryXmlFactory.cs	Fri May 21 19:41:02 2010 +0000
+++ b/api/Factories/Xml/WarFoundryXmlFactory.cs	Sat May 29 20:03:17 2010 +0000
@@ -133,42 +133,42 @@
 
 		public override void CompleteLoading(IWarFoundryStagedLoadObject obj)
 		{			
-			LogNotifier.DebugFormat(GetType(), "Complete loading of {0} with ID {1}", obj.GetType().Name, obj.ID);
-
-			if (obj is GameSystem)
-			{
-				CompleteLoadingGameSystem((GameSystem) obj);
-			}
-			else if (obj is Race)
-			{
-				CompleteLoadingRace((Race) obj);
+			LogNotifier.DebugFormat(GetType(), "Complete loading of {0} with ID {1}", obj.GetType().Name, obj.ID);
+
+			if (obj is GameSystem)
+			{
+				CompleteLoadingGameSystem((GameSystem) obj);
+			}
+			else if (obj is Race)
+			{
+				CompleteLoadingRace((Race) obj);
+			}
+		}
+
+		private void CompleteLoadingRace(Race race)
+		{
+			try
+			{
+				raceFactory.CompleteLoading(race);
 			}
-		}
-
-		private void CompleteLoadingRace(Race race)
-		{
-			try
-			{
-				raceFactory.CompleteLoading(race);
-			}
-			catch (InvalidFileException ex)
-			{
-				WarFoundryLoader.GetDefault().RemoveRace(race);
-				throw;
-			}
-		}
-
-		private void CompleteLoadingGameSystem(GameSystem system)
-		{
-			try
-			{
-				gameSystemFactory.CompleteLoading(system);
-			}
-			catch (InvalidFileException ex)
-			{
-				WarFoundryLoader.GetDefault().RemoveGameSystem(system);
-				throw;
-			}
+			catch (InvalidFileException ex)
+			{
+				WarFoundryLoader.GetDefault().RemoveRace(race);
+				throw;
+			}
+		}
+
+		private void CompleteLoadingGameSystem(GameSystem system)
+		{
+			try
+			{
+				gameSystemFactory.CompleteLoading(system);
+			}
+			catch (InvalidFileException ex)
+			{
+				WarFoundryLoader.GetDefault().RemoveGameSystem(system);
+				throw;
+			}
 		}
 	}
 }
\ No newline at end of file