104 lines
3.2 KiB
C#
104 lines
3.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 WeaponAttributeData : Luban.BeanBase
|
|
{
|
|
public WeaponAttributeData(JSONNode _buf)
|
|
{
|
|
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
|
{ if(!_buf["Arms"].IsNumber) { throw new SerializationException(); } Arms = _buf["Arms"]; }
|
|
{ if(!_buf["Name"].IsString) { throw new SerializationException(); } Name = _buf["Name"]; }
|
|
{ if(!_buf["Level"].IsNumber) { throw new SerializationException(); } Level = _buf["Level"]; }
|
|
{ if(!_buf["Upgrade"].IsNumber) { throw new SerializationException(); } Upgrade = _buf["Upgrade"]; }
|
|
{ if(!_buf["Upgradenumber"].IsNumber) { throw new SerializationException(); } Upgradenumber = _buf["Upgradenumber"]; }
|
|
{ if(!_buf["Upgradegold"].IsNumber) { throw new SerializationException(); } Upgradegold = _buf["Upgradegold"]; }
|
|
{ if(!_buf["Attack"].IsNumber) { throw new SerializationException(); } Attack = _buf["Attack"]; }
|
|
{ if(!_buf["HP"].IsNumber) { throw new SerializationException(); } HP = _buf["HP"]; }
|
|
{ if(!_buf["Getskill"].IsNumber) { throw new SerializationException(); } Getskill = _buf["Getskill"]; }
|
|
}
|
|
|
|
public static WeaponAttributeData DeserializeWeaponAttributeData(JSONNode _buf)
|
|
{
|
|
return new BlacksmithData.WeaponAttributeData(_buf);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 升级ID
|
|
/// </summary>
|
|
public readonly int ID;
|
|
/// <summary>
|
|
/// 武器ID
|
|
/// </summary>
|
|
public readonly int Arms;
|
|
/// <summary>
|
|
/// 名称
|
|
/// </summary>
|
|
public readonly string Name;
|
|
/// <summary>
|
|
/// 等级
|
|
/// </summary>
|
|
public readonly int Level;
|
|
/// <summary>
|
|
/// 升级消耗材料
|
|
/// </summary>
|
|
public readonly int Upgrade;
|
|
/// <summary>
|
|
/// 升级消耗数量
|
|
/// </summary>
|
|
public readonly int Upgradenumber;
|
|
/// <summary>
|
|
/// 升级消耗金币
|
|
/// </summary>
|
|
public readonly int Upgradegold;
|
|
/// <summary>
|
|
/// 攻击
|
|
/// </summary>
|
|
public readonly int Attack;
|
|
/// <summary>
|
|
/// 生命
|
|
/// </summary>
|
|
public readonly int HP;
|
|
/// <summary>
|
|
/// 获得技能ID
|
|
/// </summary>
|
|
public readonly int Getskill;
|
|
|
|
public const int __ID__ = -334700822;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void ResolveRef(Tables tables)
|
|
{
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "ID:" + ID + ","
|
|
+ "Arms:" + Arms + ","
|
|
+ "Name:" + Name + ","
|
|
+ "Level:" + Level + ","
|
|
+ "Upgrade:" + Upgrade + ","
|
|
+ "Upgradenumber:" + Upgradenumber + ","
|
|
+ "Upgradegold:" + Upgradegold + ","
|
|
+ "Attack:" + Attack + ","
|
|
+ "HP:" + HP + ","
|
|
+ "Getskill:" + Getskill + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|
|
|