23 lines
488 B
C#
23 lines
488 B
C#
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 = 1; // 最大堆叠数量,默认为1
|
||
public bool ssEquippable = false; // 是否可装备
|
||
}
|
||
|
||
public class WeaponDef : ItemDef
|
||
{
|
||
public AttributesDef attributes;
|
||
}
|
||
} |