17 lines
420 B
C#
17 lines
420 B
C#
|
|
namespace PrizeSystem
|
|
{
|
|
public class CountablePrize : Prize
|
|
{
|
|
public CountablePrizeType Type { get; private set; }
|
|
public int Amount { get;}
|
|
public override string Body => $"{Type}:{Amount}";
|
|
|
|
public CountablePrize(CountablePrizeType type, int amount) : base(PrizeUtils.CountableToGeneral(type))
|
|
{
|
|
Type = type;
|
|
Amount = amount;
|
|
}
|
|
}
|
|
}
|