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 wrap: on
line diff
--- a/API/Factories/Requirement/UnitRequiresAtLeastNUnitsRequirementFactory.cs	Mon Jun 13 19:44:39 2011 +0000
+++ b/API/Factories/Requirement/UnitRequiresAtLeastNUnitsRequirementFactory.cs	Tue Jun 14 13:58:16 2011 +0000
@@ -17,6 +17,7 @@
 		public UnitRequiresAtLeastNUnitsRequirement CreateRequirement (UnitType type, string data)
 		{
 			UnitRequiresAtLeastNUnitsRequirement req = new UnitRequiresAtLeastNUnitsRequirement(type);
+			req.AddUnitTypeRequirement(type.Race.GetUnitType(data));
 			return req;
 		}
 	}