IndieGame/client/Assets/Scripts/AutoGenerated/Table/PropItemTable.cs

86 lines
2.5 KiB
C#
Raw Normal View History

2024-10-11 10:12:15 +08:00
//------------------------------------------------------------------------------
// <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 SimpleJSON;
namespace TableConfig
{
public sealed partial class PropItemTable : Luban.BeanBase
{
public PropItemTable(JSONNode _buf)
{
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
{ if(!_buf["Name"].IsString) { throw new SerializationException(); } Name = _buf["Name"]; }
{ if(!_buf["Type"].IsNumber) { throw new SerializationException(); } Type = (PropItemType)_buf["Type"].AsInt; }
{ if(!_buf["Description"].IsString) { throw new SerializationException(); } Description = _buf["Description"]; }
{ if(!_buf["Icon"].IsString) { throw new SerializationException(); } Icon = _buf["Icon"]; }
{ if(!_buf["Quality"].IsNumber) { throw new SerializationException(); } Quality = _buf["Quality"]; }
{ if(!_buf["Occupy"].IsBoolean) { throw new SerializationException(); } Occupy = _buf["Occupy"]; }
}
public static PropItemTable DeserializePropItemTable(JSONNode _buf)
{
return new PropItemTable(_buf);
}
/// <summary>
/// 道具id
/// </summary>
public readonly int Id;
/// <summary>
/// 道具名称
/// </summary>
public readonly string Name;
/// <summary>
/// 道具类型
/// </summary>
public readonly PropItemType Type;
/// <summary>
/// 道具描述
/// </summary>
public readonly string Description;
/// <summary>
/// 道具图标
/// </summary>
public readonly string Icon;
/// <summary>
/// 道具品质
/// </summary>
public readonly int Quality;
/// <summary>
/// 是否占用背包
/// </summary>
public readonly bool Occupy;
public const int __ID__ = 1552388152;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "Id:" + Id + ","
+ "Name:" + Name + ","
+ "Type:" + Type + ","
+ "Description:" + Description + ","
+ "Icon:" + Icon + ","
+ "Quality:" + Quality + ","
+ "Occupy:" + Occupy + ","
+ "}";
}
}
}