mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
update
This commit is contained in:
80
luban_examples/Projects/CfgValidator/Gen/item.Item.cs
Normal file
80
luban_examples/Projects/CfgValidator/Gen/item.Item.cs
Normal file
@@ -0,0 +1,80 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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.item
|
||||
{
|
||||
/// <summary>
|
||||
/// 道具
|
||||
/// </summary>
|
||||
public sealed partial class Item : Luban.BeanBase
|
||||
{
|
||||
public Item(JsonElement _buf)
|
||||
{
|
||||
Id = _buf.GetProperty("id").GetInt32();
|
||||
Name = _buf.GetProperty("name").GetString();
|
||||
MinorType = (item.EMinorType)_buf.GetProperty("minor_type").GetInt32();
|
||||
Quality = (item.EItemQuality)_buf.GetProperty("quality").GetInt32();
|
||||
IconBackgroud = _buf.GetProperty("icon_backgroud").GetString();
|
||||
IconMask = _buf.GetProperty("icon_mask").GetString();
|
||||
Desc = _buf.GetProperty("desc").GetString();
|
||||
ShowOrder = _buf.GetProperty("show_order").GetInt32();
|
||||
}
|
||||
|
||||
public static Item DeserializeItem(JsonElement _buf)
|
||||
{
|
||||
return new item.Item(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 道具id
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
public readonly string Name;
|
||||
public readonly item.EMinorType MinorType;
|
||||
public readonly item.EItemQuality Quality;
|
||||
public readonly string IconBackgroud;
|
||||
public readonly string IconMask;
|
||||
public readonly string Desc;
|
||||
public readonly int ShowOrder;
|
||||
|
||||
public const int __ID__ = 2107285806;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "name:" + Name + ","
|
||||
+ "minorType:" + MinorType + ","
|
||||
+ "quality:" + Quality + ","
|
||||
+ "iconBackgroud:" + IconBackgroud + ","
|
||||
+ "iconMask:" + IconMask + ","
|
||||
+ "desc:" + Desc + ","
|
||||
+ "showOrder:" + ShowOrder + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user