(client) feat:添加消息定义,添加故事定义及其运算,武器动画可用,装备UI可用以及切换武器 fix:修复快速攻击导致协程释放出错卡死,重构为计时器,修复类型转换错误导致报错

This commit is contained in:
m0_75251201
2025-09-08 00:13:12 +08:00
parent 15cdd2b244
commit 379ed07773
39 changed files with 8353 additions and 937 deletions

View File

@ -3,6 +3,6 @@ namespace Data
public class EventDef : Define
{
public string workClass;
public string value;
public string parameter;
}
}

View File

@ -10,7 +10,7 @@ namespace Data
}
public class ItemDef : Define
{
public float FPS = 0;
public float FPS = 3;
public string[] textures;
public ItemRarity rarity = ItemRarity.Common;
public int maxStack = 10; // 最大堆叠数量默认为10

View File

@ -12,6 +12,7 @@ namespace Data
public BulletDef bullet;
public string[] attackAnimation;
public float attackDetectionTime = 0;
public bool useEntityAttackAnimation = true;
public WeaponDef() // 构造函数,用于设置武器的默认属性
{
maxStack = 1; // 武器默认最大堆叠为1