server-master/srcs/_plugins/Plugin.PlayerLogs/Enrichers/Shop/LogShopNpcBoughtItemMessageEnricher.cs
2026-02-10 18:21:30 +01:00

18 lines
No EOL
648 B
C#

using Plugin.PlayerLogs.Core;
using Plugin.PlayerLogs.Messages.Shop;
using WingsEmu.Game.Shops.Event;
namespace Plugin.PlayerLogs.Enrichers.Shop
{
public class LogShopNpcBoughtItemMessageEnricher : ILogMessageEnricher<ShopNpcBoughtItemEvent, LogShopNpcBoughtItemMessage>
{
public void Enrich(LogShopNpcBoughtItemMessage message, ShopNpcBoughtItemEvent e)
{
message.TotalPrice = e.TotalPrice;
message.Quantity = e.Quantity;
message.SellerId = e.SellerId;
message.ItemInstance = e.ItemInstance;
message.CurrencyType = e.CurrencyType.ToString();
}
}
}