(client) feat:实现热重载,实现多维度,实现武器,实现掉落物,实现状态UI,实现攻击AI (#44)
Co-authored-by: zzdxxz <2079238449@qq.com> Co-committed-by: zzdxxz <2079238449@qq.com>
This commit is contained in:
21
Client/Assets/Scripts/Data/WeaponDef.cs
Normal file
21
Client/Assets/Scripts/Data/WeaponDef.cs
Normal file
@ -0,0 +1,21 @@
|
||||
namespace Data
|
||||
{
|
||||
public enum WeaponType
|
||||
{
|
||||
Melee, // 近战武器
|
||||
Ranged // 远程武器
|
||||
}
|
||||
public class WeaponDef : ItemDef
|
||||
{
|
||||
public WeaponType type = WeaponType.Melee;
|
||||
public AttributesDef attributes;
|
||||
public BulletDef bullet;
|
||||
public DrawNodeDef attackAnimation;
|
||||
public float attackDetectionTime = 0;
|
||||
public WeaponDef() // 构造函数,用于设置武器的默认属性
|
||||
{
|
||||
maxStack = 1; // 武器默认最大堆叠为1
|
||||
ssEquippable = true; // 武器默认可装备
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user