Mercurial > repos > IBDev-IBBoard.WarFoundry.API
diff API/Objects/Requirement/RaceRequiresNoMoreThanNUnitsRequirement.cs @ 479:f48c49b53738
Re #410: "N units per M models in parent" requirement
* Add a "context" object that will hold the parent unit (or possibly other stuff)
* Update all method signatures and calls
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 23 May 2012 20:56:27 +0100 |
parents | 025319b6fa7a |
children | e0641e0eb86c |
line wrap: on
line diff
--- a/API/Objects/Requirement/RaceRequiresNoMoreThanNUnitsRequirement.cs Wed May 23 20:37:23 2012 +0100 +++ b/API/Objects/Requirement/RaceRequiresNoMoreThanNUnitsRequirement.cs Wed May 23 20:56:27 2012 +0100 @@ -20,7 +20,7 @@ return toArmy.Race == AllowedObject ? 1 : 0; } - protected override bool IsApplicable(Army toArmy) + protected override bool IsApplicable(Army toArmy, AddingContext context) { bool isApplicable = false; SimpleSet<UnitType> checkedTypes = new SimpleSet<UnitType>();