using Domain.Entities.Members.ValueObject;
namespace Domain.Entities.Store.ValueObject;
public static class ItemKindExtensions
{
/// 지위 아이템(장착형) 종류 여부 — Badge/NicknameEffect/CommentEffect.
public static bool IsStatusItem(this ItemKind kind)
=> kind is ItemKind.Badge or ItemKind.NicknameEffect or ItemKind.CommentEffect;
/// 지위 아이템이면 대응 장착 슬롯, 아니면 null.
public static EquipSlot? ToEquipSlot(this ItemKind kind) => kind switch
{
ItemKind.Badge => EquipSlot.Badge,
ItemKind.NicknameEffect => EquipSlot.NicknameEffect,
ItemKind.CommentEffect => EquipSlot.CommentEffect,
_ => null
};
}