2025-08-27 19:56:49 +08:00
|
|
|
namespace Data
|
|
|
|
{
|
|
|
|
public enum WeaponType
|
|
|
|
{
|
|
|
|
Melee, // 近战武器
|
|
|
|
Ranged // 远程武器
|
|
|
|
}
|
|
|
|
public class WeaponDef : ItemDef
|
|
|
|
{
|
|
|
|
public WeaponType type = WeaponType.Melee;
|
|
|
|
public AttributesDef attributes;
|
|
|
|
public BulletDef bullet;
|
2025-09-06 12:25:55 +08:00
|
|
|
public string[] attackAnimation;
|
2025-08-27 19:56:49 +08:00
|
|
|
public float attackDetectionTime = 0;
|
2025-09-08 00:13:12 +08:00
|
|
|
public bool useEntityAttackAnimation = true;
|
2025-08-27 19:56:49 +08:00
|
|
|
public WeaponDef() // 构造函数,用于设置武器的默认属性
|
|
|
|
{
|
|
|
|
maxStack = 1; // 武器默认最大堆叠为1
|
|
|
|
ssEquippable = true; // 武器默认可装备
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|