//------------------------------------------------------------------------------ // // 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 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); } /// /// ID /// public readonly int ID; /// /// BUFF类型 /// public readonly int Bufftype; /// /// 生效几率 /// public readonly int Buffprobability; /// /// 效果1系数 /// public readonly int Buffeffect1; /// /// 效果1参数 /// public readonly int Buffparameter1; /// /// 效果2系数 /// public readonly int Buffeffect2; /// /// 效果2参数 /// public readonly int Buffparameter2; /// /// 针对目标 /// public readonly int Bufftarget; /// /// BUFF特效 /// public readonly int BuffSpecial; /// /// 生效延时 /// public readonly int Bufftake; /// /// 消失条件 /// public readonly int Buffdisappear; /// /// 条件时间 /// 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 + "," + "}"; } } }