29 lines
853 B
C#
29 lines
853 B
C#
using Newtonsoft.Json;
|
|
|
|
|
|
using ServerCore; using ServerBase;
|
|
|
|
|
|
namespace ServerCommon.BusinessLogDomain;
|
|
|
|
public class CurrencyInfo : ILogInvoker.IInfo
|
|
{
|
|
[JsonProperty]
|
|
public CurrencyType CurrencyType { get; private set; } = CurrencyType.Gold;
|
|
[JsonProperty]
|
|
public AmountDeltaType AmountDeltaType { get; private set; } = AmountDeltaType.None;
|
|
[JsonProperty]
|
|
public double DeltaAmount { get; private set; } = 0.0;
|
|
[JsonProperty]
|
|
public double CurrencyAmount { get; private set; } = 0.0;
|
|
|
|
public CurrencyInfo(ILogInvoker parent, CurrencyType currencyType, AmountDeltaType deltaType, double deltaAmount, double currencyAmount)
|
|
: base(parent)
|
|
{
|
|
CurrencyType = currencyType;
|
|
AmountDeltaType = deltaType;
|
|
DeltaAmount = deltaAmount;
|
|
CurrencyAmount = currencyAmount;
|
|
}
|
|
}
|