Files
2026-04-28 01:53:41 +08:00

61 lines
1.8 KiB
C#

//------------------------------------------------------------------------------
// <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 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);
}
/// <summary>
/// 鱼镇id
/// </summary>
public readonly int YzNumber;
/// <summary>
/// 鱼镇路线列表
/// </summary>
public readonly int[] LineList;
/// <summary>
/// 鱼数量
/// </summary>
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 + ","
+ "}";
}
}
}