This commit is contained in:
huangjun
2026-08-30 22:25:23 +08:00
parent 92bf3e9097
commit 93a10a89c5
180 changed files with 15257 additions and 11604 deletions
@@ -0,0 +1,25 @@
namespace SepCore.Definition
{
/// <summary>
/// 物品堆叠。
/// </summary>
[System.Serializable]
public struct ItemStack
{
/// <summary>
/// 物品 ID,对应 ItemConfig.Id。
/// </summary>
public int itemId;
/// <summary>
/// 数量,不超过配表 ItemConfig.StackLimit。
/// </summary>
public int count;
public ItemStack(int itemId, int count)
{
this.itemId = itemId;
this.count = count;
}
}
}