116 lines
4.2 KiB
C#
116 lines
4.2 KiB
C#
|
|
//------------------------------------------------------------------------------
|
|
// <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 cfg.BlacksmithData
|
|
{
|
|
public sealed partial class ItemData : Luban.BeanBase
|
|
{
|
|
public ItemData(JSONNode _buf)
|
|
{
|
|
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
|
{ if(!_buf["Propname"].IsString) { throw new SerializationException(); } Propname = _buf["Propname"]; }
|
|
{ if(!_buf["Propprices"].IsNumber) { throw new SerializationException(); } Propprices = _buf["Propprices"]; }
|
|
{ if(!_buf["Itemprice"].IsNumber) { throw new SerializationException(); } Itemprice = _buf["Itemprice"]; }
|
|
{ if(!_buf["Includearms"].IsNumber) { throw new SerializationException(); } Includearms = _buf["Includearms"]; }
|
|
{ if(!_buf["Proptype"].IsNumber) { throw new SerializationException(); } Proptype = _buf["Proptype"]; }
|
|
{ if(!_buf["Propquality"].IsNumber) { throw new SerializationException(); } Propquality = _buf["Propquality"]; }
|
|
{ if(!_buf["Icon"].IsString) { throw new SerializationException(); } Icon = _buf["Icon"]; }
|
|
{ if(!_buf["Propdescription"].IsNumber) { throw new SerializationException(); } Propdescription = _buf["Propdescription"]; }
|
|
{ if(!_buf["Forgingprogress"].IsNumber) { throw new SerializationException(); } Forgingprogress = _buf["Forgingprogress"]; }
|
|
{ if(!_buf["Forgingprogressda"].IsNumber) { throw new SerializationException(); } Forgingprogressda = _buf["Forgingprogressda"]; }
|
|
{ var __json0 = _buf["NPC"]; if(!__json0.IsArray) { throw new SerializationException(); } NPC = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } NPC.Add(__v0); } }
|
|
}
|
|
|
|
public static ItemData DeserializeItemData(JSONNode _buf)
|
|
{
|
|
return new BlacksmithData.ItemData(_buf);
|
|
}
|
|
|
|
/// <summary>
|
|
/// #ID
|
|
/// </summary>
|
|
public readonly int ID;
|
|
/// <summary>
|
|
/// 道具名称
|
|
/// </summary>
|
|
public readonly string Propname;
|
|
/// <summary>
|
|
/// 道具价格
|
|
/// </summary>
|
|
public readonly int Propprices;
|
|
/// <summary>
|
|
/// 给与客户价格
|
|
/// </summary>
|
|
public readonly int Itemprice;
|
|
/// <summary>
|
|
/// 所在类型
|
|
/// </summary>
|
|
public readonly int Includearms;
|
|
/// <summary>
|
|
/// 道具类型
|
|
/// </summary>
|
|
public readonly int Proptype;
|
|
/// <summary>
|
|
/// 道具品质
|
|
/// </summary>
|
|
public readonly int Propquality;
|
|
/// <summary>
|
|
/// 道具图标
|
|
/// </summary>
|
|
public readonly string Icon;
|
|
/// <summary>
|
|
/// 道具说明
|
|
/// </summary>
|
|
public readonly int Propdescription;
|
|
/// <summary>
|
|
/// 锻造该材料的总进度条
|
|
/// </summary>
|
|
public readonly int Forgingprogress;
|
|
/// <summary>
|
|
/// 锻造该材料的大增加万分比
|
|
/// </summary>
|
|
public readonly int Forgingprogressda;
|
|
/// <summary>
|
|
/// 对应Npc
|
|
/// </summary>
|
|
public readonly System.Collections.Generic.List<int> NPC;
|
|
|
|
public const int __ID__ = 269279773;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void ResolveRef(Tables tables)
|
|
{
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "ID:" + ID + ","
|
|
+ "Propname:" + Propname + ","
|
|
+ "Propprices:" + Propprices + ","
|
|
+ "Itemprice:" + Itemprice + ","
|
|
+ "Includearms:" + Includearms + ","
|
|
+ "Proptype:" + Proptype + ","
|
|
+ "Propquality:" + Propquality + ","
|
|
+ "Icon:" + Icon + ","
|
|
+ "Propdescription:" + Propdescription + ","
|
|
+ "Forgingprogress:" + Forgingprogress + ","
|
|
+ "Forgingprogressda:" + Forgingprogressda + ","
|
|
+ "NPC:" + Luban.StringUtil.CollectionToString(NPC) + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|
|
|