//------------------------------------------------------------------------------ // // 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 Fish : Luban.BeanBase { public Fish(JToken _buf) { JObject _obj = _buf as JObject; Id = (int)_obj.GetValue("id"); Name = (string)_obj.GetValue("name"); MinWeight = (int)_obj.GetValue("min_weight"); MaxWeight = (int)_obj.GetValue("max_weight"); Accept = (int)_obj.GetValue("accept"); } public static Fish DeserializeFish(JToken _buf) { return new Fish(_buf); } /// /// Id /// public readonly int Id; /// /// 鱼名字 /// public readonly string Name; /// /// 最小重量(克) /// public readonly int MinWeight; /// /// 最大重量(克) /// public readonly int MaxWeight; /// /// 接受的鱼饵配置组 /// public readonly int Accept; public const int __ID__ = 2189944; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { } public override string ToString() { return "{ " + "id:" + Id + "," + "name:" + Name + "," + "minWeight:" + MinWeight + "," + "maxWeight:" + MaxWeight + "," + "accept:" + Accept + "," + "}"; } } }