namespace GameServer.Dungeon;
///
/// Runtime instance of a personal loot chest (from death overflow)
/// Only visible to the owner player
///
public class LootChestInstance
{
public int Id { get; set; }
public ulong DatabaseId { get; set; } // Reference to DeathChest in DB
public float X { get; set; }
public float Y { get; set; }
///
/// Character ID who can see/access this chest
///
public ulong OwnerCharacterId { get; set; }
///
/// Gold stored in this chest
///
public long Gold { get; set; }
///
/// Items in the chest (100 slots max)
///
public List Items { get; set; } = new();
///
/// Whether the chest is currently open by the owner
///
public bool IsOpen { get; set; }
///
/// Check if chest is empty and can be removed
///
public bool IsEmpty => Items.Count == 0 && Gold == 0;
}
public class LootChestItem
{
public int SlotIndex { get; set; }
public int ItemDefinitionId { get; set; }
public int Quantity { get; set; }
}