mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 19:34:47 +00:00
49 lines
1.1 KiB
C#
49 lines
1.1 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 System.Text.Json;
|
|
|
|
|
|
namespace cfg.test
|
|
{
|
|
public partial struct DemoE2
|
|
{
|
|
public DemoE2(JsonElement _buf)
|
|
{
|
|
{if (_buf.TryGetProperty("y1", out var _j) && _j.ValueKind != JsonValueKind.Null) { Y1 = _j.GetInt32(); } else { Y1 = null; } }
|
|
Y2 = _buf.GetProperty("y2").GetBoolean();
|
|
}
|
|
|
|
public static DemoE2 DeserializeDemoE2(JsonElement _buf)
|
|
{
|
|
return new test.DemoE2(_buf);
|
|
}
|
|
|
|
public readonly int? Y1;
|
|
public readonly bool Y2;
|
|
|
|
|
|
public void ResolveRef(Tables tables)
|
|
{
|
|
|
|
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "y1:" + Y1 + ","
|
|
+ "y2:" + Y2 + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|