Mercurial > repos > IBDev-IBBoard.WarFoundry.API
diff API/AbstractWarFoundryLoader.cs @ 419:71fceea2725b
Code tidy-up - remove warnings
* Add missing GetHashcode() implementations
* Remove unused exception variables
* Use unused event
* Remove dead code
* Properly override some methods
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 25 Sep 2011 20:52:27 +0100 |
parents | 3c4a6403a88c |
children | 86725e88052e |
line wrap: on
line diff
--- a/API/AbstractWarFoundryLoader.cs Sat Sep 24 11:59:39 2011 +0100 +++ b/API/AbstractWarFoundryLoader.cs Sun Sep 25 20:52:27 2011 +0100 @@ -129,6 +129,7 @@ /// </returns> public List<FileLoadFailure> LoadFiles() { + OnFileLoadingStarted(); PrepareForFileLoad(); Dictionary<FileInfo, IWarFoundryFactory> loadableRaces = new Dictionary<FileInfo, IWarFoundryFactory>(); Dictionary<FileInfo, IWarFoundryFactory> loadableGameSystems = new Dictionary<FileInfo, IWarFoundryFactory>(); @@ -140,6 +141,14 @@ return failedLoads; } + private void OnFileLoadingStarted() + { + if (FileLoadingStarted != null) + { + FileLoadingStarted(); + } + } + private void OnFileLoadingFinished(List<FileLoadFailure> failures) { if (FileLoadingFinished != null)