//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
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);
}
///
/// Id
///
public readonly int Id;
///
/// 鱼竿类型
///
public readonly int RodType;
///
/// 导线圈
///
public readonly int Ring;
///
/// 强度
///
public readonly int Strength;
///
/// 最大范围
///
public readonly int MaxRange;
///
/// 结构类型
///
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 + ","
+ "}";
}
}
}