namespace Data { public enum ItemRarity { Common, Uncommon, Rare, Epic, Legendary } public class ItemDef : Define { public ImageDef texture; public ItemRarity rarity = ItemRarity.Common; public int maxStack = 10; // 最大堆叠数量,默认为10 public bool ssEquippable = false; // 是否可装备 } }