# HG changeset patch # User IBBoard # Date 1320006785 0 # Node ID 8f512574031669bd28917a5870e19231a023d6bd # Parent 3882b533d99d3a578dba06238c74fdfabbfcc134 Re #27: Define unit requirements * Move definition and documentation of ID up to interface to ensure it is everywhere diff -r 3882b533d99d -r 8f5125740316 API/Objects/Requirement/AbstractRequirement.cs --- a/API/Objects/Requirement/AbstractRequirement.cs Sun Oct 30 20:31:43 2011 +0000 +++ b/API/Objects/Requirement/AbstractRequirement.cs Sun Oct 30 20:33:05 2011 +0000 @@ -8,13 +8,6 @@ { public abstract class AbstractRequirement : IRequirement { - /// - /// Gets the ID of the requirement type. This is used by the requirement factories. - /// It may be, but is not required to be, the name of the class. - /// - /// - /// The requirement I. - /// public abstract string RequirementID { get; } public override bool Equals (object obj) diff -r 3882b533d99d -r 8f5125740316 API/Objects/Requirement/IRequirement.cs --- a/API/Objects/Requirement/IRequirement.cs Sun Oct 30 20:31:43 2011 +0000 +++ b/API/Objects/Requirement/IRequirement.cs Sun Oct 30 20:33:05 2011 +0000 @@ -11,6 +11,15 @@ public interface IRequirement { /// + /// Gets the ID of the requirement type. This is used by the requirement factories. + /// It may be, but is not required to be, the name of the class. + /// + /// + /// The ID of the requirement type. + /// + string RequirementID { get; } + + /// /// Checks whether the supplied WarFoundryObject can be added to the supplied army. /// ///