neon-sprawl/server/NeonSprawl.Server/Game/Items/InventorySlotState.cs

8 lines
284 B
C#

namespace NeonSprawl.Server.Game.Items;
/// <summary>One fixed slot in a player inventory container (NEO-54).</summary>
public sealed record InventorySlotState(int SlotIndex, string? ItemId, int Quantity)
{
public bool IsEmpty => string.IsNullOrEmpty(ItemId) || Quantity <= 0;
}