JisolGame/luban_examples/Projects/CfgValidator/Gen/test.ExcelFromJsonMultiRow.cs

55 lines
1.6 KiB
C#
Raw Permalink Normal View History

2023-11-05 03:26:09 +08:00
//------------------------------------------------------------------------------
// <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 System.Text.Json;
namespace cfg.test
{
public sealed partial class ExcelFromJsonMultiRow : Luban.BeanBase
{
public ExcelFromJsonMultiRow(JsonElement _buf)
{
Id = _buf.GetProperty("id").GetInt32();
X = _buf.GetProperty("x").GetInt32();
{ var __json0 = _buf.GetProperty("items"); Items = new System.Collections.Generic.List<test.TestRow>(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.TestRow __v0; __v0 = test.TestRow.DeserializeTestRow(__e0); Items.Add(__v0); } }
}
public static ExcelFromJsonMultiRow DeserializeExcelFromJsonMultiRow(JsonElement _buf)
{
return new test.ExcelFromJsonMultiRow(_buf);
}
public readonly int Id;
public readonly int X;
public readonly System.Collections.Generic.List<test.TestRow> Items;
public const int __ID__ = 715335694;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
foreach (var _e in Items) { _e?.ResolveRef(tables); }
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "x:" + X + ","
+ "items:" + Luban.StringUtil.CollectionToString(Items) + ","
+ "}";
}
}
}