초기커밋
This commit is contained in:
28
ServerCommon/1. Define/BusinessLog/Domain/CurrencyInfo.cs
Normal file
28
ServerCommon/1. Define/BusinessLog/Domain/CurrencyInfo.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user