comparison 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
comparison
equal deleted inserted replaced
13:ad8eaed12e66 14:0770e5cbba7c
117 { 117 {
118 cats = GameSystem.Categories; 118 cats = GameSystem.Categories;
119 } 119 }
120 else 120 else
121 { 121 {
122 cats = DictionaryToArrayConverter.Convert<string, Category>(categories); 122 cats = DictionaryUtils.ToArray<string, Category>(categories);
123 } 123 }
124 124
125 return cats; 125 return cats;
126 } 126 }
127 } 127 }
190 { 190 {
191 unitTypesArray = new UnitType[0]; 191 unitTypesArray = new UnitType[0];
192 } 192 }
193 else 193 else
194 { 194 {
195 unitTypesArray = DictionaryToArrayConverter.Convert<string, UnitType>(unitTypesDictionary); 195 unitTypesArray = DictionaryUtils.ToArray<string, UnitType>(unitTypesDictionary);
196 } 196 }
197 197
198 return unitTypesArray; 198 return unitTypesArray;
199 } 199 }
200 200