Mercurial > repos > IBDev-IBBoard.WarFoundry.API
comparison API/Factories/DummyWarFoundryFactory.cs @ 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 | 3c4a6403a88c |
children | 1ed2f3ab5e35 |
comparison
equal
deleted
inserted
replaced
419:71fceea2725b | 420:22561233df69 |
---|---|
17 public event SingleArgMethodInvoker<GameSystem> GameSystemLoaded; | 17 public event SingleArgMethodInvoker<GameSystem> GameSystemLoaded; |
18 | 18 |
19 public event SingleArgMethodInvoker<Race> RaceLoaded; | 19 public event SingleArgMethodInvoker<Race> RaceLoaded; |
20 | 20 |
21 public event SingleArgMethodInvoker<Army> ArmyLoaded; | 21 public event SingleArgMethodInvoker<Army> ArmyLoaded; |
22 | 22 |
23 public DummyWarFoundryFactory() | 23 public DummyWarFoundryFactory() |
24 { | 24 { |
25 //Public constructor | 25 if (GameSystemLoaded != null && RaceLoaded != null && ArmyLoaded != null) |
26 { | |
27 //Do nothing special - we're hiding "unused code" warnings for events our interface requires | |
28 } | |
26 } | 29 } |
27 | 30 |
28 public void CompleteLoading(IWarFoundryStagedLoadObject obj) | 31 public void CompleteLoading(IWarFoundryStagedLoadObject obj) |
29 { | 32 { |
30 obj.SetAsFullyLoaded(); | 33 obj.SetAsFullyLoaded(); |