
//------------------------------------------------------------------------------
// <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;
using SimpleJSON;


namespace cfg
{
public sealed partial class Rod : Luban.BeanBase
{
    public Rod(JSONNode _buf) 
    {
        { if(!_buf["id"].IsNumber) { throw new SerializationException(); }  Id = _buf["id"]; }
        { if(!_buf["rod_type"].IsNumber) { throw new SerializationException(); }  RodType = _buf["rod_type"]; }
        { if(!_buf["ring"].IsNumber) { throw new SerializationException(); }  Ring = _buf["ring"]; }
        { if(!_buf["strength"].IsNumber) { throw new SerializationException(); }  Strength = _buf["strength"]; }
        { if(!_buf["max_range"].IsNumber) { throw new SerializationException(); }  MaxRange = _buf["max_range"]; }
        { if(!_buf["construction_type"].IsNumber) { throw new SerializationException(); }  ConstructionType = _buf["construction_type"]; }
    }

    public static Rod DeserializeRod(JSONNode _buf)
    {
        return new Rod(_buf);
    }

    /// <summary>
    /// Id
    /// </summary>
    public readonly int Id;
    /// <summary>
    /// 鱼竿类型
    /// </summary>
    public readonly int RodType;
    /// <summary>
    /// 导线圈
    /// </summary>
    public readonly int Ring;
    /// <summary>
    /// 强度
    /// </summary>
    public readonly int Strength;
    /// <summary>
    /// 最大范围
    /// </summary>
    public readonly int MaxRange;
    /// <summary>
    /// 结构类型
    /// </summary>
    public readonly int ConstructionType;
   
    public const int __ID__ = 82343;
    public override int GetTypeId() => __ID__;

    public  void ResolveRef(Tables tables)
    {
    }

    public override string ToString()
    {
        return "{ "
        + "id:" + Id + ","
        + "rodType:" + RodType + ","
        + "ring:" + Ring + ","
        + "strength:" + Strength + ","
        + "maxRange:" + MaxRange + ","
        + "constructionType:" + ConstructionType + ","
        + "}";
    }
}
}

