74 lines
1.9 KiB
C#
74 lines
1.9 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
|
|
{
|
|
/// <summary>
|
|
/// 全局零散配置(单例)
|
|
/// </summary>
|
|
public partial class TbGlobalConfig
|
|
{
|
|
|
|
private readonly GlobalConfig _data;
|
|
|
|
public GlobalConfig Data => _data;
|
|
|
|
public TbGlobalConfig(ByteBuf _buf)
|
|
{
|
|
int n = _buf.ReadSize();
|
|
if (n != 1) throw new SerializationException("table mode=one, but size != 1");
|
|
_data = GlobalConfig.DeserializeGlobalConfig(_buf);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 最大持有武器数量
|
|
/// </summary>
|
|
public int WeaponCapacity => _data.WeaponCapacity;
|
|
/// <summary>
|
|
/// 武器回收价比例
|
|
/// </summary>
|
|
public int WeaponRecycleRate => _data.WeaponRecycleRate;
|
|
/// <summary>
|
|
/// 商店商品数量
|
|
/// </summary>
|
|
public int ShopGoodsCount => _data.ShopGoodsCount;
|
|
/// <summary>
|
|
/// 商品价格浮动
|
|
/// </summary>
|
|
public int ShopPriceRandomPercent => _data.ShopPriceRandomPercent;
|
|
/// <summary>
|
|
/// 商品最低价
|
|
/// </summary>
|
|
public int ShopMinPrice => _data.ShopMinPrice;
|
|
/// <summary>
|
|
/// 最大持有道具数量
|
|
/// </summary>
|
|
public int PropMaxCount => _data.PropMaxCount;
|
|
/// <summary>
|
|
/// 升级奖励刷新基本价格
|
|
/// </summary>
|
|
public int LevelUpRefreshPriceBase => _data.LevelUpRefreshPriceBase;
|
|
/// <summary>
|
|
/// 升级奖励候选数
|
|
/// </summary>
|
|
public int LevelUpRewardCount => _data.LevelUpRewardCount;
|
|
|
|
public void ResolveRef(Tables tables)
|
|
{
|
|
_data.ResolveRef(tables);
|
|
}
|
|
}
|
|
|
|
}
|
|
|