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.DemoDynamic.cs
Normal file
51
luban_examples/Projects/CfgValidator/Gen/test.DemoDynamic.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 DemoDynamic : Luban.BeanBase
|
||||
{
|
||||
public DemoDynamic(JsonElement _buf)
|
||||
{
|
||||
X1 = _buf.GetProperty("x1").GetInt32();
|
||||
}
|
||||
|
||||
public static DemoDynamic DeserializeDemoDynamic(JsonElement _buf)
|
||||
{
|
||||
switch (_buf.GetProperty("$type").GetString())
|
||||
{
|
||||
case "DemoD2": return new test.DemoD2(_buf);
|
||||
case "DemoE1": return new test.DemoE1(_buf);
|
||||
case "test.login.RoleInfo": return new test.login.RoleInfo(_buf);
|
||||
case "DemoD5": return new test.DemoD5(_buf);
|
||||
default: throw new SerializationException();
|
||||
}
|
||||
}
|
||||
|
||||
public readonly int X1;
|
||||
|
||||
|
||||
public virtual void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "x1:" + X1 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user