清理 Player 以及相关组件
This commit is contained in:
@@ -20,6 +20,9 @@ public sealed partial class GlobalConfig : Luban.BeanBase
|
||||
PropMaxCount = _buf.ReadInt();
|
||||
PlayerEntity = _buf.ReadString();
|
||||
PlayerEntity_Ref = null;
|
||||
AbsorbSpeed = _buf.ReadInt();
|
||||
CollectDistance = _buf.ReadInt();
|
||||
DefaultAbsorbRange = _buf.ReadInt();
|
||||
WeaponRecycleRate = _buf.ReadInt();
|
||||
ShopGoodsCount = _buf.ReadInt();
|
||||
ShopPriceRandomPercent = _buf.ReadInt();
|
||||
@@ -43,6 +46,10 @@ public sealed partial class GlobalConfig : Luban.BeanBase
|
||||
ProjectileSpeed = _buf.ReadInt();
|
||||
ProjectileEntity = _buf.ReadString();
|
||||
ProjectileEntity_Ref = null;
|
||||
DamageTextYOffset = _buf.ReadInt();
|
||||
EntityAsyncTimeout = _buf.ReadInt();
|
||||
EnemyBodyRadius = _buf.ReadInt();
|
||||
EnemySeparationIterations = _buf.ReadInt();
|
||||
}
|
||||
|
||||
public static GlobalConfig DeserializeGlobalConfig(ByteBuf _buf)
|
||||
@@ -64,6 +71,18 @@ public sealed partial class GlobalConfig : Luban.BeanBase
|
||||
public readonly string PlayerEntity;
|
||||
public EntityConfig PlayerEntity_Ref;
|
||||
/// <summary>
|
||||
/// 自动收集速度
|
||||
/// </summary>
|
||||
public readonly int AbsorbSpeed;
|
||||
/// <summary>
|
||||
/// 自动收集距离
|
||||
/// </summary>
|
||||
public readonly int CollectDistance;
|
||||
/// <summary>
|
||||
/// 默认吸收距离
|
||||
/// </summary>
|
||||
public readonly int DefaultAbsorbRange;
|
||||
/// <summary>
|
||||
/// 武器回收价比例
|
||||
/// </summary>
|
||||
public readonly int WeaponRecycleRate;
|
||||
@@ -152,6 +171,22 @@ public sealed partial class GlobalConfig : Luban.BeanBase
|
||||
/// </summary>
|
||||
public readonly string ProjectileEntity;
|
||||
public EntityConfig ProjectileEntity_Ref;
|
||||
/// <summary>
|
||||
/// 伤害数字高度偏移
|
||||
/// </summary>
|
||||
public readonly int DamageTextYOffset;
|
||||
/// <summary>
|
||||
/// 实体生成超时时间
|
||||
/// </summary>
|
||||
public readonly int EntityAsyncTimeout;
|
||||
/// <summary>
|
||||
/// 敌人碰撞半径
|
||||
/// </summary>
|
||||
public readonly int EnemyBodyRadius;
|
||||
/// <summary>
|
||||
/// 敌人分离迭代次数
|
||||
/// </summary>
|
||||
public readonly int EnemySeparationIterations;
|
||||
|
||||
public const int __ID__ = -958250779;
|
||||
public override int GetTypeId() => __ID__;
|
||||
@@ -178,11 +213,18 @@ public sealed partial class GlobalConfig : Luban.BeanBase
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ProjectileEntity_Ref = tables.TbEntityConfig.GetOrDefault(ProjectileEntity);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
@@ -191,6 +233,9 @@ public sealed partial class GlobalConfig : Luban.BeanBase
|
||||
+ "weaponCapacity:" + WeaponCapacity + ","
|
||||
+ "propMaxCount:" + PropMaxCount + ","
|
||||
+ "playerEntity:" + PlayerEntity + ","
|
||||
+ "absorbSpeed:" + AbsorbSpeed + ","
|
||||
+ "collectDistance:" + CollectDistance + ","
|
||||
+ "defaultAbsorbRange:" + DefaultAbsorbRange + ","
|
||||
+ "weaponRecycleRate:" + WeaponRecycleRate + ","
|
||||
+ "shopGoodsCount:" + ShopGoodsCount + ","
|
||||
+ "shopPriceRandomPercent:" + ShopPriceRandomPercent + ","
|
||||
@@ -213,6 +258,10 @@ public sealed partial class GlobalConfig : Luban.BeanBase
|
||||
+ "projectileHeightOffset:" + ProjectileHeightOffset + ","
|
||||
+ "projectileSpeed:" + ProjectileSpeed + ","
|
||||
+ "projectileEntity:" + ProjectileEntity + ","
|
||||
+ "damageTextYOffset:" + DamageTextYOffset + ","
|
||||
+ "entityAsyncTimeout:" + EntityAsyncTimeout + ","
|
||||
+ "enemyBodyRadius:" + EnemyBodyRadius + ","
|
||||
+ "enemySeparationIterations:" + EnemySeparationIterations + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,6 +43,18 @@ public partial class TbGlobalConfig
|
||||
/// </summary>
|
||||
public string PlayerEntity => _data.PlayerEntity;
|
||||
/// <summary>
|
||||
/// 自动收集速度
|
||||
/// </summary>
|
||||
public int AbsorbSpeed => _data.AbsorbSpeed;
|
||||
/// <summary>
|
||||
/// 自动收集距离
|
||||
/// </summary>
|
||||
public int CollectDistance => _data.CollectDistance;
|
||||
/// <summary>
|
||||
/// 默认吸收距离
|
||||
/// </summary>
|
||||
public int DefaultAbsorbRange => _data.DefaultAbsorbRange;
|
||||
/// <summary>
|
||||
/// 武器回收价比例
|
||||
/// </summary>
|
||||
public int WeaponRecycleRate => _data.WeaponRecycleRate;
|
||||
@@ -130,6 +142,22 @@ public partial class TbGlobalConfig
|
||||
/// 投射物实体
|
||||
/// </summary>
|
||||
public string ProjectileEntity => _data.ProjectileEntity;
|
||||
/// <summary>
|
||||
/// 伤害数字高度偏移
|
||||
/// </summary>
|
||||
public int DamageTextYOffset => _data.DamageTextYOffset;
|
||||
/// <summary>
|
||||
/// 实体生成超时时间
|
||||
/// </summary>
|
||||
public int EntityAsyncTimeout => _data.EntityAsyncTimeout;
|
||||
/// <summary>
|
||||
/// 敌人碰撞半径
|
||||
/// </summary>
|
||||
public int EnemyBodyRadius => _data.EnemyBodyRadius;
|
||||
/// <summary>
|
||||
/// 敌人分离迭代次数
|
||||
/// </summary>
|
||||
public int EnemySeparationIterations => _data.EnemySeparationIterations;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user