Mercurial > repos > IBBoard.WarFoundry.API
comparison API/Factories/Xml/WarFoundryXmlFactory.cs @ 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 | 71fceea2725b |
comparison
equal
deleted
inserted
replaced
377:c3b0b28bad48 | 378:ff7f1b319b4e |
---|---|
137 | 137 |
138 protected override Race CreateRaceFromStream (ZipFile file, Stream dataStream) | 138 protected override Race CreateRaceFromStream (ZipFile file, Stream dataStream) |
139 { | 139 { |
140 XmlElement elem = GetRootElementFromStream(dataStream, WarFoundryXmlElementName.RACE_ELEMENT); | 140 XmlElement elem = GetRootElementFromStream(dataStream, WarFoundryXmlElementName.RACE_ELEMENT); |
141 LogNotifier.Debug(GetType(), "Create Race"); | 141 LogNotifier.Debug(GetType(), "Create Race"); |
142 return raceFactory.CreateRaceFromElement(elem); | 142 return raceFactory.CreateRace(elem); |
143 } | 143 } |
144 | 144 |
145 protected override void CleanUpFileAsSupportedType(ZipFile typedFile) | 145 protected override void CleanUpFileAsSupportedType(ZipFile typedFile) |
146 { | 146 { |
147 typedFile.Close(); | 147 typedFile.Close(); |