//------------------------------------------------------------------------------ // // 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 FishYZ : Luban.BeanBase { public FishYZ(JSONNode _buf) { { if(!_buf["yzNumber"].IsNumber) { throw new SerializationException(); } YzNumber = _buf["yzNumber"]; } { var __json0 = _buf["lineList"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; LineList = new int[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } LineList[__index0++] = __v0; } } { if(!_buf["count"].IsNumber) { throw new SerializationException(); } Count = _buf["count"]; } } public static FishYZ DeserializeFishYZ(JSONNode _buf) { return new FishYZ(_buf); } /// /// 鱼镇id /// public readonly int YzNumber; /// /// 鱼镇路线列表 /// public readonly int[] LineList; /// /// 鱼数量 /// public readonly int Count; public const int __ID__ = 2104539033; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { } public override string ToString() { return "{ " + "yzNumber:" + YzNumber + "," + "lineList:" + Luban.StringUtil.CollectionToString(LineList) + "," + "count:" + Count + "," + "}"; } } }