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.Item.cs
Normal file
54
luban_examples/Projects/CfgValidator/Gen/test.Item.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 Item : test.ItemBase
|
||||
{
|
||||
public Item(JsonElement _buf) : base(_buf)
|
||||
{
|
||||
Num = _buf.GetProperty("num").GetInt32();
|
||||
Price = _buf.GetProperty("price").GetInt32();
|
||||
}
|
||||
|
||||
public static Item DeserializeItem(JsonElement _buf)
|
||||
{
|
||||
return new test.Item(_buf);
|
||||
}
|
||||
|
||||
public readonly int Num;
|
||||
public readonly int Price;
|
||||
|
||||
public const int __ID__ = -1226641649;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "name:" + Name + ","
|
||||
+ "desc:" + Desc + ","
|
||||
+ "num:" + Num + ","
|
||||
+ "price:" + Price + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user