diff api/Objects/Race.cs @ 14:0770e5cbba7c

Closes #21 - File loading in order * Reworked LoadFiles to smaller methods for readability (also re #10) and structure * Now determine expected load return before loading then load all "expected GameSystem" before "expected Race" * Make "can load as race/game system/army" methods public in interface Re #22 - Get errored file loading * Created FileLoadFailure class and made LoadFiles return a list of them Also * Some code cleanup * Change to DictionaryUtils calls
author IBBoard <dev@ibboard.co.uk>
date Sun, 25 Jan 2009 14:03:20 +0000
parents ad8eaed12e66
children 306558904c2a
line wrap: on
line diff
--- a/api/Objects/Race.cs	Thu Jan 22 20:26:08 2009 +0000
+++ b/api/Objects/Race.cs	Sun Jan 25 14:03:20 2009 +0000
@@ -119,7 +119,7 @@
 				}
 				else
 				{
-					cats = DictionaryToArrayConverter.Convert<string, Category>(categories);
+					cats = DictionaryUtils.ToArray<string, Category>(categories);
 				}
 				
 				return cats;
@@ -192,7 +192,7 @@
 			}
 			else
 			{
-				unitTypesArray = DictionaryToArrayConverter.Convert<string, UnitType>(unitTypesDictionary);
+				unitTypesArray = DictionaryUtils.ToArray<string, UnitType>(unitTypesDictionary);
 			}
 			
 			return unitTypesArray;