comparison api/WarFoundryLoader.cs @ 114:a143b077a825

Re #54: Add Army support to WarFoundryFactory * Make sure that race and sub-race IDs are lower case so that we can find them when we load
author IBBoard <dev@ibboard.co.uk>
date Sat, 22 Aug 2009 18:35:03 +0000
parents 863518044d38
children 32b774f24017
comparison
equal deleted inserted replaced
113:5ebbffd4a05f 114:a143b077a825
718 } 718 }
719 719
720 Race race = null; 720 Race race = null;
721 721
722 systemID = systemID.ToLower(); 722 systemID = systemID.ToLower();
723 723 raceID = raceID.ToLower();
724 Dictionary<string, Dictionary<string, Race>> races; 724 raceSubID = raceSubID.ToLower();
725
726 Dictionary<string, Dictionary<string, Race>> races;
725 racesTable.TryGetValue(systemID, out races); 727 racesTable.TryGetValue(systemID, out races);
726 728
727 if (races!=null) 729 if (races!=null)
728 { 730 {
729 Dictionary<string, Race> subraces; 731 Dictionary<string, Race> subraces;