//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
using Luban;
using System.Text.Json;
namespace cfg.item
{
///
/// 道具
///
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);
}
///
/// 道具id
///
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 + ","
+ "}";
}
}
}