//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
using Luban;
namespace SepCore.Definition
{
public sealed partial class GlobalConfig : Luban.BeanBase
{
public GlobalConfig(ByteBuf _buf)
{
WeaponCapacity = _buf.ReadInt();
PropMaxCount = _buf.ReadInt();
PlayerEntity = _buf.ReadString();
PlayerEntity_Ref = null;
WeaponRecycleRate = _buf.ReadInt();
ShopGoodsCount = _buf.ReadInt();
ShopPriceRandomPercent = _buf.ReadInt();
ShopMinPrice = _buf.ReadInt();
LevelUpRefreshPriceBase = _buf.ReadInt();
LevelUpRewardCount = _buf.ReadInt();
SpawnEnemyMaxCount = _buf.ReadInt();
EnemySpawnDistanceMin = _buf.ReadInt();
EnemySpawnDistanceMax = _buf.ReadInt();
WeaponRotateSpeed = _buf.ReadInt();
PlayerGroupName = _buf.ReadString();
EnemyGroupName = _buf.ReadString();
ProjectileGroupName = _buf.ReadString();
DropGroupName = _buf.ReadString();
EffectGroupNmae = _buf.ReadString();
MinDamage = _buf.ReadInt();
MaxDodgeRate = _buf.ReadInt();
MinSpawnRateScale = _buf.ReadInt();
ProjectileLifeTime = _buf.ReadInt();
ProjectileHeightOffset = _buf.ReadInt();
ProjectileSpeed = _buf.ReadInt();
ProjectileEntity = _buf.ReadString();
ProjectileEntity_Ref = null;
}
public static GlobalConfig DeserializeGlobalConfig(ByteBuf _buf)
{
return new GlobalConfig(_buf);
}
///
/// 最大持有武器数量
///
public readonly int WeaponCapacity;
///
/// 最大持有道具数量
///
public readonly int PropMaxCount;
///
/// 玩家实体
///
public readonly string PlayerEntity;
public EntityConfig PlayerEntity_Ref;
///
/// 武器回收价比例
///
public readonly int WeaponRecycleRate;
///
/// 商店商品数量
///
public readonly int ShopGoodsCount;
///
/// 商品价格浮动
///
public readonly int ShopPriceRandomPercent;
///
/// 商品最低价
///
public readonly int ShopMinPrice;
///
/// 升级奖励刷新基本价格
///
public readonly int LevelUpRefreshPriceBase;
///
/// 升级奖励候选数
///
public readonly int LevelUpRewardCount;
///
/// 最大敌人数量
///
public readonly int SpawnEnemyMaxCount;
///
/// 敌人生成最小距离
///
public readonly int EnemySpawnDistanceMin;
///
/// 敌人生成最大距离
///
public readonly int EnemySpawnDistanceMax;
///
/// 武器旋转速度
///
public readonly int WeaponRotateSpeed;
///
/// 玩家对象组名
///
public readonly string PlayerGroupName;
///
/// 敌人对象组名
///
public readonly string EnemyGroupName;
///
/// 投射物对象组名
///
public readonly string ProjectileGroupName;
///
/// 掉落物对象组名
///
public readonly string DropGroupName;
///
/// 特效对象组名
///
public readonly string EffectGroupNmae;
///
/// 最小伤害
///
public readonly int MinDamage;
///
/// 闪避率上限
///
public readonly int MaxDodgeRate;
///
/// 最小刷怪速度倍数
///
public readonly int MinSpawnRateScale;
///
/// 投射物生命周期
///
public readonly int ProjectileLifeTime;
///
/// 投射物生成高度
///
public readonly int ProjectileHeightOffset;
///
/// 投射物移动速度
///
public readonly int ProjectileSpeed;
///
/// 投射物实体
///
public readonly string ProjectileEntity;
public EntityConfig ProjectileEntity_Ref;
public const int __ID__ = -958250779;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
PlayerEntity_Ref = tables.TbEntityConfig.GetOrDefault(PlayerEntity);
ProjectileEntity_Ref = tables.TbEntityConfig.GetOrDefault(ProjectileEntity);
}
public override string ToString()
{
return "{ "
+ "weaponCapacity:" + WeaponCapacity + ","
+ "propMaxCount:" + PropMaxCount + ","
+ "playerEntity:" + PlayerEntity + ","
+ "weaponRecycleRate:" + WeaponRecycleRate + ","
+ "shopGoodsCount:" + ShopGoodsCount + ","
+ "shopPriceRandomPercent:" + ShopPriceRandomPercent + ","
+ "shopMinPrice:" + ShopMinPrice + ","
+ "levelUpRefreshPriceBase:" + LevelUpRefreshPriceBase + ","
+ "levelUpRewardCount:" + LevelUpRewardCount + ","
+ "spawnEnemyMaxCount:" + SpawnEnemyMaxCount + ","
+ "enemySpawnDistanceMin:" + EnemySpawnDistanceMin + ","
+ "enemySpawnDistanceMax:" + EnemySpawnDistanceMax + ","
+ "weaponRotateSpeed:" + WeaponRotateSpeed + ","
+ "playerGroupName:" + PlayerGroupName + ","
+ "enemyGroupName:" + EnemyGroupName + ","
+ "projectileGroupName:" + ProjectileGroupName + ","
+ "dropGroupName:" + DropGroupName + ","
+ "effectGroupNmae:" + EffectGroupNmae + ","
+ "minDamage:" + MinDamage + ","
+ "maxDodgeRate:" + MaxDodgeRate + ","
+ "minSpawnRateScale:" + MinSpawnRateScale + ","
+ "projectileLifeTime:" + ProjectileLifeTime + ","
+ "projectileHeightOffset:" + ProjectileHeightOffset + ","
+ "projectileSpeed:" + ProjectileSpeed + ","
+ "projectileEntity:" + ProjectileEntity + ","
+ "}";
}
}
}