# HG changeset patch # User IBBoard # Date 1301252967 0 # Node ID f8471453c3cbd0f75cbbc5b3b2c098edd0889a22 # Parent 1c32b8a1600ea252d7bdeb36913bb3c3416c5d5d Re #27: Define unit requirements * Change method definition to be able to handle both Unit and UnitType diff -r 1c32b8a1600e -r f8471453c3cb api/Objects/UnitRequiresAtLeastNUnitsRequirement.cs --- a/api/Objects/UnitRequiresAtLeastNUnitsRequirement.cs Sat Mar 26 21:02:55 2011 +0000 +++ b/api/Objects/UnitRequiresAtLeastNUnitsRequirement.cs Sun Mar 27 19:09:27 2011 +0000 @@ -19,7 +19,7 @@ requiredTypes = new List(requiredUnitTypes); } - public bool CanAddToArmy(Unit unit, Army army) + public bool CanAddToArmy(WarFoundryObject unit, Army army) { bool canAdd = true;