//------------------------------------------------------------------------------ // // 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 Newtonsoft.Json.Linq; namespace cfg { public sealed partial class Rod : Luban.BeanBase { public Rod(JToken _buf) { JObject _obj = _buf as JObject; Id = (int)_obj.GetValue("id"); RodType = (int)_obj.GetValue("rod_type"); Ring = (int)_obj.GetValue("ring"); Strength = (int)_obj.GetValue("strength"); MaxRange = (int)_obj.GetValue("max_range"); ConstructionType = (int)_obj.GetValue("construction_type"); } public static Rod DeserializeRod(JToken _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 + "," + "}"; } } }