调整部分数据表配置,优化 SpriteCache 功能
This commit is contained in:
@@ -16,7 +16,8 @@ public sealed partial class EnemyConfig : Luban.BeanBase
|
||||
{
|
||||
public EnemyConfig(ByteBuf _buf)
|
||||
{
|
||||
Name = _buf.ReadString();
|
||||
EnemyType = (EnemyType)_buf.ReadInt();
|
||||
LogicType = _buf.ReadString();
|
||||
MaxHealth = _buf.ReadInt();
|
||||
HpAddPerLevel = _buf.ReadInt();
|
||||
AttackDamage = _buf.ReadInt();
|
||||
@@ -38,9 +39,13 @@ public sealed partial class EnemyConfig : Luban.BeanBase
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// 敌人类型
|
||||
/// </summary>
|
||||
public readonly string Name;
|
||||
public readonly EnemyType EnemyType;
|
||||
/// <summary>
|
||||
/// 逻辑类型
|
||||
/// </summary>
|
||||
public readonly string LogicType;
|
||||
/// <summary>
|
||||
/// 最大生命
|
||||
/// </summary>
|
||||
@@ -108,13 +113,15 @@ public sealed partial class EnemyConfig : Luban.BeanBase
|
||||
|
||||
|
||||
|
||||
|
||||
Prefab_Ref = tables.TbEntityConfig.GetOrDefault(Prefab);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "name:" + Name + ","
|
||||
+ "enemyType:" + EnemyType + ","
|
||||
+ "logicType:" + LogicType + ","
|
||||
+ "maxHealth:" + MaxHealth + ","
|
||||
+ "hpAddPerLevel:" + HpAddPerLevel + ","
|
||||
+ "attackDamage:" + AttackDamage + ","
|
||||
|
||||
Reference in New Issue
Block a user