mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 10:46:17 +00:00
update
This commit is contained in:
62
luban_examples/Projects/CfgValidator/Gen/test.TestRow.cs
Normal file
62
luban_examples/Projects/CfgValidator/Gen/test.TestRow.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 TestRow : Luban.BeanBase
|
||||
{
|
||||
public TestRow(JsonElement _buf)
|
||||
{
|
||||
X = _buf.GetProperty("x").GetInt32();
|
||||
Y = _buf.GetProperty("y").GetBoolean();
|
||||
Z = _buf.GetProperty("z").GetString();
|
||||
A = test.Test3.DeserializeTest3(_buf.GetProperty("a"));
|
||||
{ var __json0 = _buf.GetProperty("b"); B = new System.Collections.Generic.List<int>(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); B.Add(__v0); } }
|
||||
}
|
||||
|
||||
public static TestRow DeserializeTestRow(JsonElement _buf)
|
||||
{
|
||||
return new test.TestRow(_buf);
|
||||
}
|
||||
|
||||
public readonly int X;
|
||||
public readonly bool Y;
|
||||
public readonly string Z;
|
||||
public readonly test.Test3 A;
|
||||
public readonly System.Collections.Generic.List<int> B;
|
||||
|
||||
public const int __ID__ = -543222164;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
A?.ResolveRef(tables);
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "x:" + X + ","
|
||||
+ "y:" + Y + ","
|
||||
+ "z:" + Z + ","
|
||||
+ "a:" + A + ","
|
||||
+ "b:" + Luban.StringUtil.CollectionToString(B) + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user