
//------------------------------------------------------------------------------
// <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 Server.Config
{
public partial class ConstConfigCategory : ConfigSingleton<ConstConfigCategory>
{
    public const string TableName = Tables.ConstConfigCategory;


     private ConstConfig _data;

     public ConstConfig Data => _data;

    public ConstConfigCategory()
    {
        this.ReLoadData();
    }

    public sealed override void ReLoadData()
    {
        byte[] data = TableManager.Instance.GetTableData(TableName);
        LoadData(new ByteBuf(data));
    }

    protected sealed override void LoadData(ByteBuf _buf)
    {
        int n = _buf.ReadSize();
        if (n != 1) throw new SerializationException("table mode=one, but size != 1");
        _data = ConstConfig.DeserializeConstConfig(_buf);
        PostInit();
    }


    /// <summary>
    /// 救济金 单位W
    /// </summary>
     public int[] Relief => _data.Relief;
    /// <summary>
    /// 可领救济金的穷人 单位W
    /// </summary>
     public int[] Poor => _data.Poor;
    /// <summary>
    /// 救济金 每日领取上限
    /// </summary>
     public int ReliefLimitCnt => _data.ReliefLimitCnt;
    /// <summary>
    /// 广告礼包数量
    /// </summary>
     public int AdGiftCnt => _data.AdGiftCnt;
    /// <summary>
    /// 广告礼包奖励 单位W
    /// </summary>
     public int[] AdGiftReward => _data.AdGiftReward;
    /// <summary>
    /// 签到奖励
    /// </summary>
     public int SignReward => _data.SignReward;
    /// <summary>
    /// 每日转盘上限
    /// </summary>
     public int PrizeWheelLimit => _data.PrizeWheelLimit;
    /// <summary>
    /// 每日转盘免费次数
    /// </summary>
     public int PrizeWheelFreeCnt => _data.PrizeWheelFreeCnt;
    /// <summary>
    /// 通用广告礼包次数 服务器是这个数值的2倍
    /// </summary>
     public int GeneralAdLimit => _data.GeneralAdLimit;
    /// <summary>
    /// 广告奖励金额范围，单位万
    /// </summary>
     public int[] GeneralAdRewardRange => _data.GeneralAdRewardRange;
    /// <summary>
    /// 实名认证秘钥
    /// </summary>
     public string RealNameSecreKey => _data.RealNameSecreKey;
    /// <summary>
    /// 记牌器消耗的钻石数量
    /// </summary>
     public int HandTrackerDiamondCnt => _data.HandTrackerDiamondCnt;
    

    partial void PostInit();
}

}

