Mercurial > repos > snowblizz-super-API-ideas
diff api/Factories/Xml/WarFoundryXmlFactory.cs @ 234:06b4beb3e156 WarFoundry_v0.1beta6_Winforms
Re #228: Crash with missing abilityID
* Add helper methods to get various supporting factories
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Thu, 24 Dec 2009 19:59:38 +0000 |
parents | c931684f9024 |
children | d1068f4b6d1c |
line wrap: on
line diff
--- a/api/Factories/Xml/WarFoundryXmlFactory.cs Thu Dec 24 19:45:39 2009 +0000 +++ b/api/Factories/Xml/WarFoundryXmlFactory.cs Thu Dec 24 19:59:38 2009 +0000 @@ -30,7 +30,7 @@ private WarFoundryXmlRaceFactory raceFactory; private WarFoundryXmlArmyFactory armyFactory; - public static AbstractNativeWarFoundryFactory GetFactory() + public static WarFoundryXmlFactory GetFactory() { if (factory == null) { @@ -47,6 +47,21 @@ armyFactory = new WarFoundryXmlArmyFactory(); } + public WarFoundryXmlGameSystemFactory GetSystemFactory() + { + return gameSystemFactory; + } + + public WarFoundryXmlRaceFactory GetRaceFactory() + { + return raceFactory; + } + + public WarFoundryXmlArmyFactory GetArmyFactory() + { + return armyFactory; + } + protected override bool CheckCanFindArmyFileContent(ZipFile file) { return file.FindEntry("data.armyx", true) > -1;