Files
systemrevivalserver/data/entities/DungeonQuiverAmmoSlot.cs
T
2026-01-18 00:17:06 -05:00

52 lines
1.5 KiB
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DataServer.Data.Entities;
/// <summary>
/// Represents an ammunition slot within a quiver container
/// Each equipped quiver can hold multiple types of ammunition
/// </summary>
[Table("dungeon_quiver_ammo_slots")]
public class DungeonQuiverAmmoSlot
{
[Key]
public ulong Id { get; set; }
/// <summary>
/// The character item ID of the equipped quiver container
/// This links to the actual quiver item in the character's equipment
/// </summary>
[Required]
public ulong QuiverCharacterItemId { get; set; }
/// <summary>
/// Slot index within the quiver (0 to QuiverCapacity-1)
/// </summary>
[Required]
public int SlotIndex { get; set; }
/// <summary>
/// The item definition ID of the ammunition in this slot
/// References DungeonItemDefinition.Id
/// </summary>
[Required]
public int ItemDefinitionId { get; set; }
/// <summary>
/// Current quantity of this ammunition type in the slot
/// </summary>
[Required]
public int Quantity { get; set; } = 0;
/// <summary>
/// Maximum quantity allowed in this slot (from item definition's MaxStack)
/// </summary>
[Required]
public int MaxQuantity { get; set; } = 100;
// Navigation properties
public virtual DungeonCharacterItem? QuiverItem { get; set; }
public virtual DungeonItemDefinition? ItemDefinition { get; set; }
}