0
|
1 using System;
|
|
2 using IBBoard.WarFoundry.API.Objects;
|
|
3
|
|
4 namespace IBBoard.WarFoundry.API.Requirements
|
|
5 {
|
|
6 /// <summary>
|
|
7 /// Summary description for UnitRequirementItem.
|
|
8 /// </summary>
|
|
9 public class UnitRequirementItem
|
|
10 {
|
|
11 private UnitType type;
|
|
12 private int requiredNum;
|
|
13
|
|
14 public UnitRequirementItem(UnitType unitType, int reqNumber)
|
|
15 {
|
|
16 type = unitType;
|
|
17 requiredNum = reqNumber;
|
|
18 }
|
|
19
|
|
20 public UnitRequirementItem(UnitType type) : this(type, 1) { }
|
|
21
|
|
22 public UnitType UnitType
|
|
23 {
|
|
24 get { return type; }
|
|
25 }
|
|
26
|
|
27 public int Amount
|
|
28 {
|
|
29 get { return requiredNum; }
|
|
30 }
|
|
31 }
|
|
32 }
|