server-master/srcs/_plugins/Plugin.MongoLogs/Entities/Inventory/InventoryPickedUpPlayerItemLogEntity.cs
2026-02-10 18:21:30 +01:00

23 lines
No EOL
859 B
C#

using System;
using MongoDB.Bson.Serialization.Attributes;
using Plugin.MongoLogs.Utils;
using Plugin.PlayerLogs.Messages.Inventory;
using WingsEmu.DTOs.Items;
using WingsEmu.Game.Helpers;
namespace Plugin.MongoLogs.Entities.Inventory
{
[EntityFor(typeof(LogInventoryPickedUpPlayerItemMessage))]
[CollectionName(CollectionNames.INVENTORY_PICKED_UP_PLAYER_ITEM, DisplayCollectionNames.INVENTORY_PICKED_UP_PLAYER_ITEM)]
public class InventoryPickedUpPlayerItemLogEntity : IPlayerLogEntity
{
public ItemInstanceDTO ItemInstance { get; set; }
public int Amount { get; init; }
public Location Location { get; init; }
public long CharacterId { get; set; }
public string IpAddress { get; set; }
[BsonDateTimeOptions(Kind = DateTimeKind.Utc)]
public DateTime CreatedAt { get; set; }
}
}