
//------------------------------------------------------------------------------
// <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 sealed partial class SignConfig : Luban.BeanBase
{
    public SignConfig(ByteBuf _buf) 
    {
        Id = _buf.ReadInt();
        {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);SignData = new ResData[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { ResData __e0;__e0 = ResData.DeserializeResData(_buf); SignData[__index0] = __e0;}}
        DataType = _buf.ReadInt();
        RewardDay = _buf.ReadInt();
    }

    public static SignConfig DeserializeSignConfig(ByteBuf _buf)
    {
        return new SignConfig(_buf);
    }

    /// <summary>
    /// 签到数据
    /// </summary>
    public readonly int Id;
    /// <summary>
    /// 资源名称
    /// </summary>
    public readonly ResData[] SignData;
    /// <summary>
    /// 1 签到<br/>2 礼包
    /// </summary>
    public readonly int DataType;
    /// <summary>
    /// 连续签到天数
    /// </summary>
    public readonly int RewardDay;
   
    public const int __ID__ = 51128191;
    public override int GetTypeId() => __ID__;


    public override string ToString()
    {
        return "{ "
        + "id:" + Id + ","
        + "signData:" + Luban.StringUtil.CollectionToString(SignData) + ","
        + "dataType:" + DataType + ","
        + "rewardDay:" + RewardDay + ","
        + "}";
    }
}

}
