server-master/srcs/_plugins/Plugin.PlayerLogs/Enrichers/Shop/LogShopPlayerBoughtItemMessageEnricher.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 LogShopPlayerBoughtItemMessageEnricher : ILogMessageEnricher<ShopPlayerBoughtItemEvent, LogShopPlayerBoughtItemMessage>
{
public void Enrich(LogShopPlayerBoughtItemMessage message, ShopPlayerBoughtItemEvent e)
{
message.TotalPrice = e.TotalPrice;
message.Quantity = e.Quantity;
message.SellerId = e.SellerId;
message.SellerName = e.SellerName;
message.ItemInstance = e.ItemInstance;
}
}
}