Mercurial > repos > IBBoard.WarFoundry.API
comparison api/WarFoundryLoader.cs @ 8:613bc5eaac59
Re #9 - Make WarFoundry loading granular
* Remove specific staged loading classes
* Rework category loading for GameSystem and Race to make it use AddCategory(Category) method
* Promote staged loading from Native Factory to all Factories level
* Refactor XML Factory to use smaller methods
Also removed some commented code that isn't used any more
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 04 Jan 2009 19:24:13 +0000 |
parents | b9346894319c |
children | 0770e5cbba7c |
comparison
equal
deleted
inserted
replaced
7:895c8a2378a1 | 8:613bc5eaac59 |
---|---|
460 { | 460 { |
461 LoadFiles(); | 461 LoadFiles(); |
462 } | 462 } |
463 | 463 |
464 systemID = systemID.ToLower(); | 464 systemID = systemID.ToLower(); |
465 | |
466 foreach (string key in racesTable.Keys) | |
467 { | |
468 Console.WriteLine(key); | |
469 } | |
470 | |
471 Dictionary<string, Dictionary<string, Race>> system; | 465 Dictionary<string, Dictionary<string, Race>> system; |
472 racesTable.TryGetValue(systemID, out system); | 466 racesTable.TryGetValue(systemID, out system); |
473 | 467 |
474 if (system==null) | 468 if (system==null) |
475 { | 469 { |