diff API/Objects/Requirement/IRequirement.cs @ 487:248df19652f9

Re #410: Create "N units per M models in parent unit" requirement * Add null adding context * Add initial skeleton of "N units per M models in parent unit" requirement * Update use of context * Standardise some of "is applicable" testing
author IBBoard <dev@ibboard.co.uk>
date Fri, 27 Jul 2012 20:31:12 +0100
parents afc6410e4efc
children 4f01fdc3bb41
line wrap: on
line diff
--- a/API/Objects/Requirement/IRequirement.cs	Sun Jul 15 21:01:47 2012 +0100
+++ b/API/Objects/Requirement/IRequirement.cs	Fri Jul 27 20:31:12 2012 +0100
@@ -2,6 +2,7 @@
 // 
 // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license.
 using System;
+using IBBoard.WarFoundry.API.Objects.Requirement.Context;
 
 namespace IBBoard.WarFoundry.API.Objects.Requirement
 {
@@ -67,7 +68,10 @@
 		/// <param name='toArmy'>
 		/// The army the object will be added to
 		/// </param>
-		string GetAllowsAddingMessage(IWarFoundryObject toAdd, Army toArmy);
+		/// <param name="context">
+		/// The context of the addition
+		/// </para>			
+		string GetAllowsAddingMessage(IWarFoundryObject toAdd, Army toArmy, AddingContext context);
 	}
 }