0
|
1 using System;
|
|
2 using IBBoard;
|
|
3 using IBBoard.Lang;
|
|
4 using IBBoard.WarFoundry.API.Objects;
|
|
5
|
|
6 namespace IBBoard.WarFoundry.API.Requirements
|
|
7 {
|
|
8 /// <summary>
|
|
9 /// Summary description for UnitMaxNumberRequirement.
|
|
10 /// </summary>
|
|
11 public class UnitMaxNumberReached : FailedUnitRequirement
|
|
12 {
|
|
13 private UnitType type;
|
|
14
|
|
15 public UnitMaxNumberReached(UnitType unitType, UnitRequirementMaxNumber requirement) : base(requirement)
|
|
16 {
|
|
17 type = unitType;
|
|
18 }
|
|
19
|
|
20 public override string Description
|
|
21 {
|
|
22 get { return String.Format(Translation.GetTranslation("ErrorUnitMaxNumberReached", "The maximum number of units of type \"{0}\" has already been reached or exceeded."), type.Name); }
|
|
23 }
|
|
24 }
|
|
25 }
|