Mercurial > repos > IBDev-IBBoard.WarFoundry.API
changeset 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 | a36a0e9cc05d |
children | 0ebb1b80a2bd |
files | api/Factories/Xml/WarFoundryXmlFactory.cs |
diffstat | 1 files changed, 16 insertions(+), 1 deletions(-) [+] |
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;