Mercurial > repos > IBDev-IBBoard.WarFoundry.API
changeset 420:22561233df69
Code cleanup - remove warnings
* Add some dummy code to use events that Visual Studio thinks aren't used but MonoDevelop didn't care about
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 26 Sep 2011 20:17:37 +0100 |
parents | 71fceea2725b |
children | b622937ac879 |
files | API/Factories/DummyWarFoundryFactory.cs |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/API/Factories/DummyWarFoundryFactory.cs Sun Sep 25 20:52:27 2011 +0100 +++ b/API/Factories/DummyWarFoundryFactory.cs Mon Sep 26 20:17:37 2011 +0100 @@ -19,10 +19,13 @@ public event SingleArgMethodInvoker<Race> RaceLoaded; public event SingleArgMethodInvoker<Army> ArmyLoaded; - + public DummyWarFoundryFactory() { - //Public constructor + if (GameSystemLoaded != null && RaceLoaded != null && ArmyLoaded != null) + { + //Do nothing special - we're hiding "unused code" warnings for events our interface requires + } } public void CompleteLoading(IWarFoundryStagedLoadObject obj)