33 lines
721 B
C#
33 lines
721 B
C#
|
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
using ServerBase;
|
|
using ServerCommon;
|
|
|
|
namespace ServerCommon.BusinessLogDomain;
|
|
|
|
|
|
public class ItemPurchaseBusinessLog : ILogInvokerEx
|
|
{
|
|
private ItemPurchase m_data_to_log;
|
|
|
|
public ItemPurchaseBusinessLog(int npcMID, int shopMID, int productMID, int productCount)
|
|
: base(LogDomainType.Item)
|
|
{
|
|
m_data_to_log = new(this, npcMID, shopMID, productMID, productCount);
|
|
}
|
|
|
|
public override bool hasLog()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
protected override void fillup(ref BusinessLog.LogBody body)
|
|
{
|
|
body.append(new ItemPurchase(this, m_data_to_log.NPCMID, m_data_to_log.ShopMID, m_data_to_log.ProductMID, m_data_to_log.ProductCount));
|
|
}
|
|
}
|