迁移敌人模型到新素材上并加入动画

This commit is contained in:
2026-10-05 18:53:10 +08:00
parent 7590d78e74
commit fc8f720e57
289 changed files with 100572 additions and 3243 deletions
@@ -32,18 +32,5 @@ namespace SepCore.Entity
public float SpeedBase => Config.Speed;
public float DropPercent => Config.DropPercent;
public float Scale => Config.Scale;
public Color Color
{
get
{
// 空/非法颜色值视为无染色(乘以白色)。
return ColorUtility.TryParseHtmlString(Config.Color, out Color color)
? color
: Color.white;
}
}
}
}
@@ -15,7 +15,7 @@ namespace SepCore.Definition
/// 伤害类型
/// </summary>
[System.Flags]
public enum DamageType : int
public enum DamageType : byte
{
/// <summary>
/// 无
@@ -25,8 +25,6 @@ public sealed partial class EnemyConfig : Luban.BeanBase
AttackRange = _buf.ReadFloat();
Speed = _buf.ReadFloat();
DropPercent = _buf.ReadFloat();
Scale = _buf.ReadFloat();
Color = _buf.ReadString();
Prefab = _buf.ReadString();
Prefab_Ref = null;
}
@@ -73,14 +71,6 @@ public sealed partial class EnemyConfig : Luban.BeanBase
/// </summary>
public readonly float DropPercent;
/// <summary>
/// 缩放
/// </summary>
public readonly float Scale;
/// <summary>
/// 颜色
/// </summary>
public readonly string Color;
/// <summary>
/// 预制体
/// </summary>
public readonly string Prefab;
@@ -100,8 +90,6 @@ public sealed partial class EnemyConfig : Luban.BeanBase
Prefab_Ref = tables.TbEntityConfig.GetOrDefault(Prefab);
}
@@ -117,8 +105,6 @@ public sealed partial class EnemyConfig : Luban.BeanBase
+ "attackRange:" + AttackRange + ","
+ "speed:" + Speed + ","
+ "dropPercent:" + DropPercent + ","
+ "scale:" + Scale + ","
+ "color:" + Color + ","
+ "prefab:" + Prefab + ","
+ "}";
}
@@ -21,13 +21,13 @@ namespace SepCore.Definition
/// </summary>
None = 0,
/// <summary>
/// 近战敌人
/// 外星人
/// </summary>
MeleeEnemy = 1,
AlienEnemy = 1,
/// <summary>
/// 远程敌人
/// 恶魔
/// </summary>
RemoteEnemy = 2,
DemonEnemy = 2,
/// <summary>
/// 蝙蝠
/// </summary>
@@ -35,19 +35,19 @@ namespace SepCore.Definition
/// <summary>
/// 骷髅兵
/// </summary>
SkeletonEnemy = 4,
SkullEnemy = 4,
/// <summary>
/// 骷髅巨人
/// 企鹅
/// </summary>
SkeletonGiantEnemy = 5,
PenguinEnemy = 5,
/// <summary>
/// 幽灵
/// </summary>
GhostEnemy = 6,
/// <summary>
/// 火焰法师
/// 雪人
/// </summary>
FireMageEnemy = 7,
YetiEnemy = 7,
}
}