
//------------------------------------------------------------------------------
// <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 Line : Luban.BeanBase
{
    public Line(JSONNode _buf) 
    {
        { if(!_buf["id"].IsNumber) { throw new SerializationException(); }  Id = _buf["id"]; }
        { if(!_buf["strength"].IsNumber) { throw new SerializationException(); }  Strength = _buf["strength"]; }
        { if(!_buf["size"].IsNumber) { throw new SerializationException(); }  Size = _buf["size"]; }
    }

    public static Line DeserializeLine(JSONNode _buf)
    {
        return new Line(_buf);
    }

    /// <summary>
    /// Id
    /// </summary>
    public readonly int Id;
    /// <summary>
    /// 强度
    /// </summary>
    public readonly int Strength;
    /// <summary>
    /// 尺寸
    /// </summary>
    public readonly int Size;
   
    public const int __ID__ = 2368532;
    public override int GetTypeId() => __ID__;

    public  void ResolveRef(Tables tables)
    {
    }

    public override string ToString()
    {
        return "{ "
        + "id:" + Id + ","
        + "strength:" + Strength + ","
        + "size:" + Size + ","
        + "}";
    }
}
}

