Mercurial > repos > IBBoard.WarFoundry.API
diff API/Objects/Requirement/AbstractRequirement.cs @ 427:3882b533d99d
Re #27: Define unit requirements
* Add ID to requirements so that it isn't just defined in factories
* Make factory use ID from requirement class to avoid duplication and possible mismatch
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 30 Oct 2011 20:31:43 +0000 |
parents | 71fceea2725b |
children | 8f5125740316 |
line wrap: on
line diff
--- a/API/Objects/Requirement/AbstractRequirement.cs Fri Oct 28 20:52:29 2011 +0100 +++ b/API/Objects/Requirement/AbstractRequirement.cs Sun Oct 30 20:31:43 2011 +0000 @@ -8,6 +8,15 @@ { public abstract class AbstractRequirement : IRequirement { + /// <summary> + /// 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. + /// </summary> + /// <value> + /// The requirement I. + /// </value> + public abstract string RequirementID { get; } + public override bool Equals (object obj) { if (obj == null)