33 lines
805 B
C#
33 lines
805 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace DataServer.Data.Entities;
|
|
|
|
/// <summary>
|
|
/// Hotbar/belt item slot assignment for quick item access
|
|
/// </summary>
|
|
[Table("dungeon_belt_items")]
|
|
public class DungeonBeltItem
|
|
{
|
|
[Key]
|
|
public ulong Id { get; set; }
|
|
|
|
[Required]
|
|
public ulong CharacterId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Hotbar slot (0-7)
|
|
/// </summary>
|
|
[Required]
|
|
public int SlotIndex { get; set; }
|
|
|
|
/// <summary>
|
|
/// Reference to inventory slot index (not item ID, since items can stack/move)
|
|
/// </summary>
|
|
public int InventorySlotIndex { get; set; }
|
|
|
|
// Navigation
|
|
[ForeignKey("CharacterId")]
|
|
public virtual DungeonCharacter? Character { get; set; }
|
|
}
|