116 lines
3.9 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 BuffData : Luban.BeanBase
{
public BuffData(JSONNode _buf)
{
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
{ if(!_buf["Bufftype"].IsNumber) { throw new SerializationException(); } Bufftype = _buf["Bufftype"]; }
{ if(!_buf["Buffprobability"].IsNumber) { throw new SerializationException(); } Buffprobability = _buf["Buffprobability"]; }
{ if(!_buf["Buffeffect1"].IsNumber) { throw new SerializationException(); } Buffeffect1 = _buf["Buffeffect1"]; }
{ if(!_buf["Buffparameter1"].IsNumber) { throw new SerializationException(); } Buffparameter1 = _buf["Buffparameter1"]; }
{ if(!_buf["Buffeffect2"].IsNumber) { throw new SerializationException(); } Buffeffect2 = _buf["Buffeffect2"]; }
{ if(!_buf["Buffparameter2"].IsNumber) { throw new SerializationException(); } Buffparameter2 = _buf["Buffparameter2"]; }
{ if(!_buf["Bufftarget"].IsNumber) { throw new SerializationException(); } Bufftarget = _buf["Bufftarget"]; }
{ if(!_buf["BuffSpecial"].IsNumber) { throw new SerializationException(); } BuffSpecial = _buf["BuffSpecial"]; }
{ if(!_buf["Bufftake"].IsNumber) { throw new SerializationException(); } Bufftake = _buf["Bufftake"]; }
{ if(!_buf["Buffdisappear"].IsNumber) { throw new SerializationException(); } Buffdisappear = _buf["Buffdisappear"]; }
{ if(!_buf["Buffdisappeartime"].IsNumber) { throw new SerializationException(); } Buffdisappeartime = _buf["Buffdisappeartime"]; }
}
public static BuffData DeserializeBuffData(JSONNode _buf)
{
return new BlacksmithData.BuffData(_buf);
}
/// <summary>
/// ID
/// </summary>
public readonly int ID;
/// <summary>
/// BUFF类型
/// </summary>
public readonly int Bufftype;
/// <summary>
/// 生效几率
/// </summary>
public readonly int Buffprobability;
/// <summary>
/// 效果1系数
/// </summary>
public readonly int Buffeffect1;
/// <summary>
/// 效果1参数
/// </summary>
public readonly int Buffparameter1;
/// <summary>
/// 效果2系数
/// </summary>
public readonly int Buffeffect2;
/// <summary>
/// 效果2参数
/// </summary>
public readonly int Buffparameter2;
/// <summary>
/// 针对目标
/// </summary>
public readonly int Bufftarget;
/// <summary>
/// BUFF特效
/// </summary>
public readonly int BuffSpecial;
/// <summary>
/// 生效延时
/// </summary>
public readonly int Bufftake;
/// <summary>
/// 消失条件
/// </summary>
public readonly int Buffdisappear;
/// <summary>
/// 条件时间
/// </summary>
public readonly int Buffdisappeartime;
public const int __ID__ = 1864177501;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "Bufftype:" + Bufftype + ","
+ "Buffprobability:" + Buffprobability + ","
+ "Buffeffect1:" + Buffeffect1 + ","
+ "Buffparameter1:" + Buffparameter1 + ","
+ "Buffeffect2:" + Buffeffect2 + ","
+ "Buffparameter2:" + Buffparameter2 + ","
+ "Bufftarget:" + Bufftarget + ","
+ "BuffSpecial:" + BuffSpecial + ","
+ "Bufftake:" + Bufftake + ","
+ "Buffdisappear:" + Buffdisappear + ","
+ "Buffdisappeartime:" + Buffdisappeartime + ","
+ "}";
}
}
}