//------------------------------------------------------------------------------
//
// 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 SkillData : Luban.BeanBase
{
public SkillData(JSONNode _buf)
{
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
{ if(!_buf["Skilltype"].IsNumber) { throw new SerializationException(); } Skilltype = _buf["Skilltype"]; }
{ if(!_buf["Skillname"].IsString) { throw new SerializationException(); } Skillname = _buf["Skillname"]; }
{ if(!_buf["Skillbody"].IsNumber) { throw new SerializationException(); } Skillbody = _buf["Skillbody"]; }
{ if(!_buf["SkillSpecial"].IsNumber) { throw new SerializationException(); } SkillSpecial = _buf["SkillSpecial"]; }
{ if(!_buf["Skillcover"].IsNumber) { throw new SerializationException(); } Skillcover = _buf["Skillcover"]; }
{ if(!_buf["Skillhurt"].IsNumber) { throw new SerializationException(); } Skillhurt = _buf["Skillhurt"]; }
{ if(!_buf["SkillCD"].IsNumber) { throw new SerializationException(); } SkillCD = _buf["SkillCD"]; }
{ if(!_buf["SkillDamage"].IsNumber) { throw new SerializationException(); } SkillDamage = _buf["SkillDamage"]; }
{ var __json0 = _buf["Skillrange"]; if(!__json0.IsArray) { throw new SerializationException(); } Skillrange = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Skillrange.Add(__v0); } }
{ var __json0 = _buf["Skillbuild"]; if(!__json0.IsArray) { throw new SerializationException(); } Skillbuild = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Skillbuild.Add(__v0); } }
{ if(!_buf["Skillgeneratetime"].IsNumber) { throw new SerializationException(); } Skillgeneratetime = _buf["Skillgeneratetime"]; }
{ if(!_buf["Skillmove"].IsNumber) { throw new SerializationException(); } Skillmove = _buf["Skillmove"]; }
{ if(!_buf["Skillscattering"].IsString) { throw new SerializationException(); } Skillscattering = _buf["Skillscattering"]; }
{ if(!_buf["Skilladdbuff"].IsNumber) { throw new SerializationException(); } Skilladdbuff = _buf["Skilladdbuff"]; }
{ if(!_buf["Skilltarget"].IsNumber) { throw new SerializationException(); } Skilltarget = _buf["Skilltarget"]; }
{ if(!_buf["Skillmusic"].IsNumber) { throw new SerializationException(); } Skillmusic = _buf["Skillmusic"]; }
}
public static SkillData DeserializeSkillData(JSONNode _buf)
{
return new BlacksmithData.SkillData(_buf);
}
///
/// ID
///
public readonly int ID;
///
/// 类型
///
public readonly int Skilltype;
///
/// 技能名称
///
public readonly string Skillname;
///
/// 预制体ID
///
public readonly int Skillbody;
///
/// 技能特效
///
public readonly int SkillSpecial;
///
/// 受击特效
///
public readonly int Skillcover;
///
/// 伤害类型
///
public readonly int Skillhurt;
///
/// 技能CD
///
public readonly int SkillCD;
///
/// 技能伤害倍率
///
public readonly float SkillDamage;
///
/// 技能范围类型
///
public readonly System.Collections.Generic.List Skillrange;
///
/// 技能体生成位置
///
public readonly System.Collections.Generic.List Skillbuild;
///
/// 预制体生成时间
///
public readonly int Skillgeneratetime;
///
/// 技能体移动速度
///
public readonly int Skillmove;
///
/// 子弹散射
///
public readonly string Skillscattering;
///
/// 增加BUFF
///
public readonly int Skilladdbuff;
///
/// 攻击目标
///
public readonly int Skilltarget;
///
/// 技能音效
///
public readonly int Skillmusic;
public const int __ID__ = -379883301;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "Skilltype:" + Skilltype + ","
+ "Skillname:" + Skillname + ","
+ "Skillbody:" + Skillbody + ","
+ "SkillSpecial:" + SkillSpecial + ","
+ "Skillcover:" + Skillcover + ","
+ "Skillhurt:" + Skillhurt + ","
+ "SkillCD:" + SkillCD + ","
+ "SkillDamage:" + SkillDamage + ","
+ "Skillrange:" + Luban.StringUtil.CollectionToString(Skillrange) + ","
+ "Skillbuild:" + Luban.StringUtil.CollectionToString(Skillbuild) + ","
+ "Skillgeneratetime:" + Skillgeneratetime + ","
+ "Skillmove:" + Skillmove + ","
+ "Skillscattering:" + Skillscattering + ","
+ "Skilladdbuff:" + Skilladdbuff + ","
+ "Skilltarget:" + Skilltarget + ","
+ "Skillmusic:" + Skillmusic + ","
+ "}";
}
}
}