Mercurial > repos > IBBoard.WarFoundry.API
diff api/Objects/Army.cs @ 89:cb3759c3ea19
* Code clean-up (line endings)
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 01 Aug 2009 20:04:13 +0000 |
parents | 89cc29b4c012 |
children | 2f3cafb69799 |
line wrap: on
line diff
--- a/api/Objects/Army.cs Sat Aug 01 20:03:54 2009 +0000 +++ b/api/Objects/Army.cs Sat Aug 01 20:04:13 2009 +0000 @@ -98,16 +98,16 @@ protected void OnUnitAdded(Unit unit) { OnUnitAdded(unit, null); - } - - protected void OnUnitAdded(Unit unit, List<FailedUnitRequirement> failedReqs) - { - if (UnitAdded != null) - { - UnitAdded(unit); - } - - OnFailedRequirement(failedReqs); + } + + protected void OnUnitAdded(Unit unit, List<FailedUnitRequirement> failedReqs) + { + if (UnitAdded != null) + { + UnitAdded(unit); + } + + OnFailedRequirement(failedReqs); } protected void OnUnitRemoved(Unit unit) @@ -120,17 +120,17 @@ if (UnitRemoved!=null) { UnitRemoved(unit); - } - + } + OnFailedRequirement(failedReqs); - } - - protected void OnFailedRequirement(List<FailedUnitRequirement> failedReqs) - { - if (FailedRequirement != null && failedReqs != null && failedReqs.Count > 0) - { - FailedRequirement(failedReqs); - } + } + + protected void OnFailedRequirement(List<FailedUnitRequirement> failedReqs) + { + if (FailedRequirement != null && failedReqs != null && failedReqs.Count > 0) + { + FailedRequirement(failedReqs); + } } private void OnPointsValueChanged(double oldValue, double newValue) @@ -256,16 +256,16 @@ private void Army_UnitAdded(WarFoundryObject val) { OnUnitAdded((Unit)val); - } - + } + private void Army_UnitRemoved(WarFoundryObject val) { OnUnitRemoved((Unit)val); - } - - private void Army_FailedRequirement(List<FailedUnitRequirement> val) - { - OnFailedRequirement(val); + } + + private void Army_FailedRequirement(List<FailedUnitRequirement> val) + { + OnFailedRequirement(val); } } }