//------------------------------------------------------------------------------
//
// 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();
WeaponRecycleRate = _buf.ReadInt();
ShopGoodsCount = _buf.ReadInt();
ShopPriceRandomPercent = _buf.ReadInt();
ShopMinPrice = _buf.ReadInt();
LevelUpRefreshPriceBase = _buf.ReadInt();
LevelUpRewardCount = _buf.ReadInt();
EnemyGroupName = _buf.ReadString();
SpawnEnemyMaxCount = _buf.ReadInt();
SpawnDistanceFromPlayer = _buf.ReadInt();
}
public static GlobalConfig DeserializeGlobalConfig(ByteBuf _buf)
{
return new GlobalConfig(_buf);
}
///
/// 最大持有武器数量
///
public readonly int WeaponCapacity;
///
/// 最大持有道具数量
///
public readonly int PropMaxCount;
///
/// 武器回收价比例
///
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 string EnemyGroupName;
///
/// 最大敌人数量
///
public readonly int SpawnEnemyMaxCount;
///
/// 敌人生成距离
///
public readonly int SpawnDistanceFromPlayer;
public const int __ID__ = -958250779;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "weaponCapacity:" + WeaponCapacity + ","
+ "propMaxCount:" + PropMaxCount + ","
+ "weaponRecycleRate:" + WeaponRecycleRate + ","
+ "shopGoodsCount:" + ShopGoodsCount + ","
+ "shopPriceRandomPercent:" + ShopPriceRandomPercent + ","
+ "shopMinPrice:" + ShopMinPrice + ","
+ "levelUpRefreshPriceBase:" + LevelUpRefreshPriceBase + ","
+ "levelUpRewardCount:" + LevelUpRewardCount + ","
+ "enemyGroupName:" + EnemyGroupName + ","
+ "spawnEnemyMaxCount:" + SpawnEnemyMaxCount + ","
+ "spawnDistanceFromPlayer:" + SpawnDistanceFromPlayer + ","
+ "}";
}
}
}