2024-12-13 20:38:15 +08:00

74 lines
2.6 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.BlacksmithData
{
public sealed partial class LevelFallingData : Luban.BeanBase
{
public LevelFallingData(JSONNode _buf)
{
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
{ if(!_buf["Drop1"].IsNumber) { throw new SerializationException(); } Drop1 = _buf["Drop1"]; }
{ var __json0 = _buf["Drop1num"]; if(!__json0.IsArray) { throw new SerializationException(); } Drop1num = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Drop1num.Add(__v0); } }
{ if(!_buf["Drop2"].IsNumber) { throw new SerializationException(); } Drop2 = _buf["Drop2"]; }
{ var __json0 = _buf["Drop2num"]; if(!__json0.IsArray) { throw new SerializationException(); } Drop2num = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Drop2num.Add(__v0); } }
}
public static LevelFallingData DeserializeLevelFallingData(JSONNode _buf)
{
return new BlacksmithData.LevelFallingData(_buf);
}
/// <summary>
/// 掉落ID
/// </summary>
public readonly int ID;
/// <summary>
/// 掉落道具1
/// </summary>
public readonly int Drop1;
/// <summary>
/// 掉落区间1
/// </summary>
public readonly System.Collections.Generic.List<int> Drop1num;
/// <summary>
/// 掉落道具2
/// </summary>
public readonly int Drop2;
/// <summary>
/// 掉落区间2
/// </summary>
public readonly System.Collections.Generic.List<int> Drop2num;
public const int __ID__ = 1784056173;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "Drop1:" + Drop1 + ","
+ "Drop1num:" + Luban.StringUtil.CollectionToString(Drop1num) + ","
+ "Drop2:" + Drop2 + ","
+ "Drop2num:" + Luban.StringUtil.CollectionToString(Drop2num) + ","
+ "}";
}
}
}