17 lines
411 B
C#
17 lines
411 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace PrizeSystem
|
|
{
|
|
public class CountablePrize : Prize
|
|
{
|
|
public CountablePrizeType Type { get; private set; }
|
|
public int Amount { get;}
|
|
|
|
[JsonConstructor]
|
|
public CountablePrize(CountablePrizeType type, int amount) : base(PrizeUtils.CountableToGeneral(type))
|
|
{
|
|
Type = type;
|
|
Amount = amount;
|
|
}
|
|
}
|
|
} |