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 diff
     1.1 --- a/API/Factories/Xml/WarFoundryXmlFactory.cs	Mon Jul 04 20:02:26 2011 +0000
     1.2 +++ b/API/Factories/Xml/WarFoundryXmlFactory.cs	Sat Jul 16 19:59:04 2011 +0000
     1.3 @@ -139,7 +139,7 @@
     1.4  		{
     1.5  			XmlElement elem = GetRootElementFromStream(dataStream, WarFoundryXmlElementName.RACE_ELEMENT);
     1.6  			LogNotifier.Debug(GetType(), "Create Race");
     1.7 -			return raceFactory.CreateRaceFromElement(elem);
     1.8 +			return raceFactory.CreateRace(elem);
     1.9  		}
    1.10  
    1.11  		protected override void CleanUpFileAsSupportedType(ZipFile typedFile)
     2.1 --- a/API/Factories/Xml/WarFoundryXmlRaceFactory.cs	Mon Jul 04 20:02:26 2011 +0000
     2.2 +++ b/API/Factories/Xml/WarFoundryXmlRaceFactory.cs	Sat Jul 16 19:59:04 2011 +0000
     2.3 @@ -45,11 +45,6 @@
     2.4  
     2.5  		public Race CreateRace(XmlElement elem)
     2.6  		{
     2.7 -			return CreateRaceFromElement(elem);
     2.8 -		}
     2.9 -		
    2.10 -		public Race CreateRaceFromElement(XmlElement elem)
    2.11 -		{
    2.12  			string id = elem.GetAttribute("id");
    2.13  			string subid = elem.GetAttribute("subid");
    2.14  			string systemID = elem.GetAttribute("system");