98 lines
2.6 KiB
C#
98 lines
2.6 KiB
C#
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
using Luban;
|
|
|
|
|
|
namespace SepCore.Definition
|
|
{
|
|
public sealed partial class GlobalConfig : Luban.BeanBase
|
|
{
|
|
public GlobalConfig(ByteBuf _buf)
|
|
{
|
|
WeaponCapacity = _buf.ReadInt();
|
|
WeaponRecycleRate = _buf.ReadInt();
|
|
ShopGoodsCount = _buf.ReadInt();
|
|
ShopPriceRandomPercent = _buf.ReadInt();
|
|
ShopMinPrice = _buf.ReadInt();
|
|
PropMaxCount = _buf.ReadInt();
|
|
LevelUpRefreshPriceBase = _buf.ReadInt();
|
|
LevelUpRewardCount = _buf.ReadInt();
|
|
}
|
|
|
|
public static GlobalConfig DeserializeGlobalConfig(ByteBuf _buf)
|
|
{
|
|
return new GlobalConfig(_buf);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 最大持有武器数量
|
|
/// </summary>
|
|
public readonly int WeaponCapacity;
|
|
/// <summary>
|
|
/// 武器回收价比例
|
|
/// </summary>
|
|
public readonly int WeaponRecycleRate;
|
|
/// <summary>
|
|
/// 商店商品数量
|
|
/// </summary>
|
|
public readonly int ShopGoodsCount;
|
|
/// <summary>
|
|
/// 商品价格浮动
|
|
/// </summary>
|
|
public readonly int ShopPriceRandomPercent;
|
|
/// <summary>
|
|
/// 商品最低价
|
|
/// </summary>
|
|
public readonly int ShopMinPrice;
|
|
/// <summary>
|
|
/// 最大持有道具数量
|
|
/// </summary>
|
|
public readonly int PropMaxCount;
|
|
/// <summary>
|
|
/// 升级奖励刷新基本价格
|
|
/// </summary>
|
|
public readonly int LevelUpRefreshPriceBase;
|
|
/// <summary>
|
|
/// 升级奖励候选数
|
|
/// </summary>
|
|
public readonly int LevelUpRewardCount;
|
|
|
|
public const int __ID__ = -958250779;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void ResolveRef(Tables tables)
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "weaponCapacity:" + WeaponCapacity + ","
|
|
+ "weaponRecycleRate:" + WeaponRecycleRate + ","
|
|
+ "shopGoodsCount:" + ShopGoodsCount + ","
|
|
+ "shopPriceRandomPercent:" + ShopPriceRandomPercent + ","
|
|
+ "shopMinPrice:" + ShopMinPrice + ","
|
|
+ "propMaxCount:" + PropMaxCount + ","
|
|
+ "levelUpRefreshPriceBase:" + LevelUpRefreshPriceBase + ","
|
|
+ "levelUpRewardCount:" + LevelUpRewardCount + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|