2024-12-10 17:46:37 +08:00

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