mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
update
This commit is contained in:
51
luban_examples/Projects/CfgValidator/Gen/test.DemoD3.cs
Normal file
51
luban_examples/Projects/CfgValidator/Gen/test.DemoD3.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 abstract partial class DemoD3 : test.DemoDynamic
|
||||
{
|
||||
public DemoD3(JsonElement _buf) : base(_buf)
|
||||
{
|
||||
X3 = _buf.GetProperty("x3").GetInt32();
|
||||
}
|
||||
|
||||
public static DemoD3 DeserializeDemoD3(JsonElement _buf)
|
||||
{
|
||||
switch (_buf.GetProperty("$type").GetString())
|
||||
{
|
||||
case "DemoE1": return new test.DemoE1(_buf);
|
||||
case "test.login.RoleInfo": return new test.login.RoleInfo(_buf);
|
||||
default: throw new SerializationException();
|
||||
}
|
||||
}
|
||||
|
||||
public readonly int X3;
|
||||
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "x1:" + X1 + ","
|
||||
+ "x3:" + X3 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user