changeset 372:2f8b2467ba99

Re #351: Add extensible requirement handling method * Pass unit test (assumes units are already loaded)
author IBBoard <dev@ibboard.co.uk>
date Tue, 14 Jun 2011 13:58:16 +0000
parents bfdb95906075
children e10630f39ec2
files API/Factories/Requirement/UnitRequiresAtLeastNUnitsRequirementFactory.cs
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/API/Factories/Requirement/UnitRequiresAtLeastNUnitsRequirementFactory.cs	Mon Jun 13 19:44:39 2011 +0000
     1.2 +++ b/API/Factories/Requirement/UnitRequiresAtLeastNUnitsRequirementFactory.cs	Tue Jun 14 13:58:16 2011 +0000
     1.3 @@ -17,6 +17,7 @@
     1.4  		public UnitRequiresAtLeastNUnitsRequirement CreateRequirement (UnitType type, string data)
     1.5  		{
     1.6  			UnitRequiresAtLeastNUnitsRequirement req = new UnitRequiresAtLeastNUnitsRequirement(type);
     1.7 +			req.AddUnitTypeRequirement(type.Race.GetUnitType(data));
     1.8  			return req;
     1.9  		}
    1.10  	}