# HG changeset patch # User IBBoard # Date 1235226233 0 # Node ID 3c228f093a71cbadb7200c2556b823d48fce922c # Parent a99d3b8466baf7dc77eab93e078ac0aeaea3e815 Re #16 - Complete Rollcall file loading * Add default implementation to "do create" method in non-native factory Also commit csproj changes and removal of old mdp file diff -r a99d3b8466ba -r 3c228f093a71 IBBoard.WarFoundry.API.csproj --- a/IBBoard.WarFoundry.API.csproj Mon Jan 26 20:29:37 2009 +0000 +++ b/IBBoard.WarFoundry.API.csproj Sat Feb 21 14:23:53 2009 +0000 @@ -1,93 +1,49 @@ - Local - 8.0.50727 - 2.0 - {59EC117B-F955-44D5-8461-8F44F3A7481A} Debug AnyCPU - - - - + 8.0.50727 + 2.0 + {951E6C7A-7FBA-4F68-9D9E-F48618BB9626} + Library + Properties + IBBoard.WarFoundry.API IBBoard.WarFoundry.API - - - JScript - Grid - IE50 - false - Library - IBBoard.WarFoundry - OnBuildSuccess - - - - + true + full + false bin\Debug\ - false - 285212672 - false - - DEBUG;TRACE - - - true - 4096 - false - - - false - false - false - false + prompt 4 - full - prompt - bin\Release\ - false - 285212672 - false - - - TRACE - - - false - 4096 - false - - + pdbonly true - false - false - false + bin\Release\ + TRACE + prompt 4 - none - prompt + + - - - - - - - - IBBoard - - - False - libs\ICSharpCode.SharpZipLib.dll - + + + + + @@ -97,6 +53,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -115,61 +105,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - + + {5DFD64F6-FC2B-4B4F-B92E-483BAC468105} + IBBoard + + + {DCBA3FB1-267A-4D89-955B-5C05785EE1CD} + IBBoard.Log4Net + - - - - - - - - + + + + False + libs\ICSharpCode.SharpZipLib.dll + \ No newline at end of file diff -r a99d3b8466ba -r 3c228f093a71 IBBoard.WarFoundry.API.csproj.user --- a/IBBoard.WarFoundry.API.csproj.user Mon Jan 26 20:29:37 2009 +0000 +++ b/IBBoard.WarFoundry.API.csproj.user Sat Feb 21 14:23:53 2009 +0000 @@ -1,58 +1,5 @@  - 7.10.3077 - Debug - AnyCPU - - - - - - - 0 - ShowAllFiles - 0 - - - false - false - false - false - false - - - Project - - - - - - - - - - - true - - - false - false - false - false - false - - - Project - - - - - - - - - - - true + ProjectFiles \ No newline at end of file diff -r a99d3b8466ba -r 3c228f093a71 IBBoard.WarFoundry.API.mdp --- a/IBBoard.WarFoundry.API.mdp Mon Jan 26 20:29:37 2009 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,104 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff -r a99d3b8466ba -r 3c228f093a71 api/Factories/AbstractNonNativeFileExtensionWarFoundryFactory.cs --- a/api/Factories/AbstractNonNativeFileExtensionWarFoundryFactory.cs Mon Jan 26 20:29:37 2009 +0000 +++ b/api/Factories/AbstractNonNativeFileExtensionWarFoundryFactory.cs Sat Feb 21 14:23:53 2009 +0000 @@ -43,5 +43,25 @@ protected abstract Army CreateArmyFromFile(FileInfo file); protected abstract Race CreateRaceFromFile(FileInfo file); protected abstract GameSystem CreateGameSystemFromFile(FileInfo file); + + protected override ICollection DoCreateObjectsFromFile (FileInfo file) + { + ICollection objects = new List(); + + if (CheckCanHandleFileAsRace(file)) + { + objects.Add(CreateRaceFromFile(file)); + } + else if (CheckCanHandleFileAsGameSystem(file)) + { + objects.Add(CreateGameSystemFromFile(file)); + } + else if (CheckCanHandleFileAsArmy(file)) + { + objects.Add(CreateArmyFromFile(file)); + } + + return objects; + } } }