mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
update
This commit is contained in:
54
luban_examples/Projects/CfgValidator/Gen/test.Foo.cs
Normal file
54
luban_examples/Projects/CfgValidator/Gen/test.Foo.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Foo : Luban.BeanBase
|
||||
{
|
||||
public Foo(JsonElement _buf)
|
||||
{
|
||||
Y1 = _buf.GetProperty("y1").GetInt32();
|
||||
Y2 = _buf.GetProperty("y2").GetInt32();
|
||||
Y3 = _buf.GetProperty("y3").GetInt32();
|
||||
}
|
||||
|
||||
public static Foo DeserializeFoo(JsonElement _buf)
|
||||
{
|
||||
return new test.Foo(_buf);
|
||||
}
|
||||
|
||||
public readonly int Y1;
|
||||
public readonly int Y2;
|
||||
public readonly int Y3;
|
||||
|
||||
public const int __ID__ = -1147950774;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "y1:" + Y1 + ","
|
||||
+ "y2:" + Y2 + ","
|
||||
+ "y3:" + Y3 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user