changeset 378:ff7f1b319b4e

Re #353: Handle unloaded units being referenced outside factory * Remove old named method and update references
author IBBoard <dev@ibboard.co.uk>
date Sat, 16 Jul 2011 19:59:04 +0000
parents c3b0b28bad48
children 04f4c2fea356
files API/Factories/Xml/WarFoundryXmlFactory.cs API/Factories/Xml/WarFoundryXmlRaceFactory.cs
diffstat 2 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/API/Factories/Xml/WarFoundryXmlFactory.cs	Mon Jul 04 20:02:26 2011 +0000
+++ b/API/Factories/Xml/WarFoundryXmlFactory.cs	Sat Jul 16 19:59:04 2011 +0000
@@ -139,7 +139,7 @@
 		{
 			XmlElement elem = GetRootElementFromStream(dataStream, WarFoundryXmlElementName.RACE_ELEMENT);
 			LogNotifier.Debug(GetType(), "Create Race");
-			return raceFactory.CreateRaceFromElement(elem);
+			return raceFactory.CreateRace(elem);
 		}
 
 		protected override void CleanUpFileAsSupportedType(ZipFile typedFile)
--- a/API/Factories/Xml/WarFoundryXmlRaceFactory.cs	Mon Jul 04 20:02:26 2011 +0000
+++ b/API/Factories/Xml/WarFoundryXmlRaceFactory.cs	Sat Jul 16 19:59:04 2011 +0000
@@ -45,11 +45,6 @@
 
 		public Race CreateRace(XmlElement elem)
 		{
-			return CreateRaceFromElement(elem);
-		}
-		
-		public Race CreateRaceFromElement(XmlElement elem)
-		{
 			string id = elem.GetAttribute("id");
 			string subid = elem.GetAttribute("subid");
 			string systemID = elem.GetAttribute("system");