| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2025年7月26日
|
| | | // [ Date ]: Monday, October 27, 2025
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | |
|
| | | public partial class SkillConfig : ConfigBase<int, SkillConfig>
|
| | | {
|
| | | static SkillConfig()
|
| | | {
|
| | | // 访问过静态构造函数
|
| | | visit = true; |
| | | }
|
| | |
|
| | | public int SkillID;
|
| | | public string SkillName;
|
| | | public int SkillTypeID;
|
| | | public int SkillLV;
|
| | | public int SkillMaxLV;
|
| | | public int UseType;
|
| | | public string SkillName;
|
| | | public string Description;
|
| | | public int FuncType;
|
| | | public int CastTime;
|
| | | public int SkillType;
|
| | | public int HurtType;
|
| | | public int ContinueUse;
|
| | | public int AtkType;
|
| | | public int AtkRadius;
|
| | | public int Tag;
|
| | | public int AtkDist;
|
| | | public int StiffTime;
|
| | | public int TagAim;
|
| | | public int TagFriendly;
|
| | | public int TagAffect;
|
| | | public int TagCount;
|
| | | public int HappenRate;
|
| | | public int CoolDownTime;
|
| | | public int MP;
|
| | | public int HP;
|
| | | public int XP;
|
| | | public int UseItemID;
|
| | | public int UseItemCount;
|
| | | public int Effect1;
|
| | | public int EffectValue11;
|
| | | public int EffectValue12;
|
| | | public int EffectValue13;
|
| | | public int Effect2;
|
| | | public int EffectValue21;
|
| | | public int EffectValue22;
|
| | | public int EffectValue23;
|
| | | public int Effect3;
|
| | | public int EffectValue31;
|
| | | public int EffectValue32;
|
| | | public int EffectValue33;
|
| | | public int Effect4;
|
| | | public int EffectValue41;
|
| | | public int EffectValue42;
|
| | | public int EffectValue43;
|
| | | public int Effect5;
|
| | | public int EffectValue51;
|
| | | public int EffectValue52;
|
| | | public int EffectValue53;
|
| | | public int Effect6;
|
| | | public int EffectValue61;
|
| | | public int EffectValue62;
|
| | | public int EffectValue63;
|
| | | public int HappenRate6;
|
| | | public int LastTime6;
|
| | | public int SkillEnhance1;
|
| | | public int SkillEnhance2;
|
| | | public int StateSkillLV;
|
| | | public int LearnSkillReq;
|
| | | public int LearnSkillLV;
|
| | | public int LearnLVReq;
|
| | | public int LearnSkillPointReq;
|
| | | public int[] BuffStateLimit;
|
| | | public int BuffState;
|
| | | public int FightPower;
|
| | | public int LVUpCostMoneyType;
|
| | | public int LVUpCostMoney;
|
| | | public int LVUpCostExp;
|
| | | public int ClientActionLimit;
|
| | | public int ClientSkillSeriesLimit;
|
| | | public int SkillOfSeries;
|
| | | public int ExpendMPRate;
|
| | | public int ExAttr1;
|
| | | public int ExAttr3;
|
| | | public int ExAttr4;
|
| | | public int ExAttr5;
|
| | | public int BuffEffectID;
|
| | | public int EffectName;
|
| | | public string IconName;
|
| | | public string Description;
|
| | | public string BuffDescription;
|
| | | public int BuffDisplay;
|
| | | public int CastPosition;
|
| | | public int CastDistance;
|
| | | public int[] TriggerFrames;
|
| | | public int[][] DamageDivide;
|
| | | public string SkillMotionName;
|
| | | public string IconName;
|
| | | public string BuffIconName;
|
| | | public string SkillTipsName;
|
| | | public int EffectType;
|
| | | public int StartupFrames;
|
| | | public int[] ActiveFrames;
|
| | | public int RecoveryFrames;
|
| | | public int LoopCount;
|
| | | public int CastPosition;
|
| | | public int CastIndexNum;
|
| | | public float CastDistance;
|
| | | public int[][] DamageDivide;
|
| | | public int BulletEffectId;
|
| | | public int BulletPath;
|
| | | public float BulletFlySpeed;
|
| | | public int Scattering;
|
| | | public int ExplosionEffectId;
|
| | | public int ExplosionEffect2;
|
| | | public int ExplosionEffect3;
|
| | | public int ExplosionEffect4;
|
| | | public int EffectId;
|
| | | public int ExplotionEffectId;
|
| | | public float FlyTime;
|
| | | public int EffectId2;
|
| | | public int MStartEffectId;
|
| | | public int BuffEffect;
|
| | | public int TriggerEffect;
|
| | |
|
| | | public override int LoadKey(string _key)
|
| | | {
|
| | |
| | | string[] tables = input.Split('\t');
|
| | | int.TryParse(tables[0],out SkillID);
|
| | |
|
| | | SkillName = tables[1];
|
| | | int.TryParse(tables[1],out SkillTypeID); |
| | |
|
| | | int.TryParse(tables[2],out SkillTypeID); |
| | | int.TryParse(tables[2],out SkillLV); |
| | |
|
| | | int.TryParse(tables[3],out SkillLV); |
| | | int.TryParse(tables[3],out SkillMaxLV); |
| | |
|
| | | int.TryParse(tables[4],out SkillMaxLV); |
| | | SkillName = tables[4];
|
| | |
|
| | | int.TryParse(tables[5],out UseType); |
| | | Description = tables[5];
|
| | |
|
| | | int.TryParse(tables[6],out FuncType);
|
| | |
|
| | | int.TryParse(tables[7],out CastTime); |
| | | int.TryParse(tables[7],out SkillType); |
| | |
|
| | | int.TryParse(tables[8],out SkillType); |
| | | int.TryParse(tables[8],out HurtType); |
| | |
|
| | | int.TryParse(tables[9],out HurtType); |
| | | int.TryParse(tables[9],out AtkType); |
| | |
|
| | | int.TryParse(tables[10],out ContinueUse); |
| | | int.TryParse(tables[10],out TagAim); |
| | |
|
| | | int.TryParse(tables[11],out AtkType); |
| | | int.TryParse(tables[11],out TagFriendly); |
| | |
|
| | | int.TryParse(tables[12],out AtkRadius); |
| | | int.TryParse(tables[12],out TagAffect); |
| | |
|
| | | int.TryParse(tables[13],out Tag); |
| | | int.TryParse(tables[13],out TagCount); |
| | |
|
| | | int.TryParse(tables[14],out AtkDist); |
| | | int.TryParse(tables[14],out HappenRate); |
| | |
|
| | | int.TryParse(tables[15],out StiffTime); |
| | | int.TryParse(tables[15],out CoolDownTime); |
| | |
|
| | | int.TryParse(tables[16],out CoolDownTime); |
| | |
|
| | | int.TryParse(tables[17],out MP); |
| | |
|
| | | int.TryParse(tables[18],out HP); |
| | |
|
| | | int.TryParse(tables[19],out XP); |
| | |
|
| | | int.TryParse(tables[20],out UseItemID); |
| | |
|
| | | int.TryParse(tables[21],out UseItemCount); |
| | |
|
| | | int.TryParse(tables[22],out Effect1); |
| | |
|
| | | int.TryParse(tables[23],out EffectValue11); |
| | |
|
| | | int.TryParse(tables[24],out EffectValue12); |
| | |
|
| | | int.TryParse(tables[25],out EffectValue13); |
| | |
|
| | | int.TryParse(tables[26],out Effect2); |
| | |
|
| | | int.TryParse(tables[27],out EffectValue21); |
| | |
|
| | | int.TryParse(tables[28],out EffectValue22); |
| | |
|
| | | int.TryParse(tables[29],out EffectValue23); |
| | |
|
| | | int.TryParse(tables[30],out Effect3); |
| | |
|
| | | int.TryParse(tables[31],out EffectValue31); |
| | |
|
| | | int.TryParse(tables[32],out EffectValue32); |
| | |
|
| | | int.TryParse(tables[33],out EffectValue33); |
| | |
|
| | | int.TryParse(tables[34],out Effect4); |
| | |
|
| | | int.TryParse(tables[35],out EffectValue41); |
| | |
|
| | | int.TryParse(tables[36],out EffectValue42); |
| | |
|
| | | int.TryParse(tables[37],out EffectValue43); |
| | |
|
| | | int.TryParse(tables[38],out Effect5); |
| | |
|
| | | int.TryParse(tables[39],out EffectValue51); |
| | |
|
| | | int.TryParse(tables[40],out EffectValue52); |
| | |
|
| | | int.TryParse(tables[41],out EffectValue53); |
| | |
|
| | | int.TryParse(tables[42],out Effect6); |
| | |
|
| | | int.TryParse(tables[43],out EffectValue61); |
| | |
|
| | | int.TryParse(tables[44],out EffectValue62); |
| | |
|
| | | int.TryParse(tables[45],out EffectValue63); |
| | |
|
| | | int.TryParse(tables[46],out HappenRate6); |
| | |
|
| | | int.TryParse(tables[47],out LastTime6); |
| | |
|
| | | int.TryParse(tables[48],out SkillEnhance1); |
| | |
|
| | | int.TryParse(tables[49],out SkillEnhance2); |
| | |
|
| | | int.TryParse(tables[50],out StateSkillLV); |
| | |
|
| | | int.TryParse(tables[51],out LearnSkillReq); |
| | |
|
| | | int.TryParse(tables[52],out LearnSkillLV); |
| | |
|
| | | int.TryParse(tables[53],out LearnLVReq); |
| | |
|
| | | int.TryParse(tables[54],out LearnSkillPointReq); |
| | |
|
| | | int.TryParse(tables[55],out FightPower); |
| | |
|
| | | int.TryParse(tables[56],out LVUpCostMoneyType); |
| | |
|
| | | int.TryParse(tables[57],out LVUpCostMoney); |
| | |
|
| | | int.TryParse(tables[58],out LVUpCostExp); |
| | |
|
| | | int.TryParse(tables[59],out ClientActionLimit); |
| | |
|
| | | int.TryParse(tables[60],out ClientSkillSeriesLimit); |
| | |
|
| | | int.TryParse(tables[61],out SkillOfSeries); |
| | |
|
| | | int.TryParse(tables[62],out ExpendMPRate); |
| | |
|
| | | int.TryParse(tables[63],out ExAttr1); |
| | |
|
| | | int.TryParse(tables[64],out ExAttr3); |
| | |
|
| | | int.TryParse(tables[65],out ExAttr4); |
| | |
|
| | | int.TryParse(tables[66],out ExAttr5); |
| | |
|
| | | int.TryParse(tables[67],out BuffEffectID); |
| | |
|
| | | int.TryParse(tables[68],out EffectName); |
| | |
|
| | | IconName = tables[69];
|
| | |
|
| | | Description = tables[70];
|
| | |
|
| | | BuffDescription = tables[71];
|
| | |
|
| | | int.TryParse(tables[72],out BuffDisplay); |
| | |
|
| | | int.TryParse(tables[73],out CastPosition); |
| | |
|
| | | int.TryParse(tables[74],out CastDistance); |
| | |
|
| | | if (tables[75].Contains("[")) |
| | | if (tables[16].Contains("[")) |
| | | { |
| | | TriggerFrames = JsonMapper.ToObject<int[]>(tables[75]); |
| | | BuffStateLimit = JsonMapper.ToObject<int[]>(tables[16]); |
| | | } |
| | | else |
| | | { |
| | | string[] TriggerFramesStringArray = tables[75].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | TriggerFrames = new int[TriggerFramesStringArray.Length]; |
| | | for (int i=0;i<TriggerFramesStringArray.Length;i++) |
| | | string[] BuffStateLimitStringArray = tables[16].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | BuffStateLimit = new int[BuffStateLimitStringArray.Length]; |
| | | for (int i=0;i<BuffStateLimitStringArray.Length;i++) |
| | | { |
| | | int.TryParse(TriggerFramesStringArray[i],out TriggerFrames[i]); |
| | | int.TryParse(BuffStateLimitStringArray[i],out BuffStateLimit[i]); |
| | | } |
| | | }
|
| | |
|
| | | DamageDivide = JsonMapper.ToObject<int[][]>(tables[76].Replace("(", "[").Replace(")", "]")); |
| | | int.TryParse(tables[17],out BuffState); |
| | |
|
| | | SkillMotionName = tables[77];
|
| | | int.TryParse(tables[18],out FightPower); |
| | |
|
| | | int.TryParse(tables[78],out EffectId); |
| | | SkillMotionName = tables[19];
|
| | |
|
| | | int.TryParse(tables[79],out ExplotionEffectId); |
| | | IconName = tables[20];
|
| | |
|
| | | float.TryParse(tables[80],out FlyTime); |
| | | BuffIconName = tables[21];
|
| | |
|
| | | SkillTipsName = tables[22];
|
| | |
|
| | | int.TryParse(tables[23],out EffectType); |
| | |
|
| | | int.TryParse(tables[24],out StartupFrames); |
| | |
|
| | | if (tables[25].Contains("[")) |
| | | { |
| | | ActiveFrames = JsonMapper.ToObject<int[]>(tables[25]); |
| | | } |
| | | else |
| | | { |
| | | string[] ActiveFramesStringArray = tables[25].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | ActiveFrames = new int[ActiveFramesStringArray.Length]; |
| | | for (int i=0;i<ActiveFramesStringArray.Length;i++) |
| | | { |
| | | int.TryParse(ActiveFramesStringArray[i],out ActiveFrames[i]); |
| | | } |
| | | }
|
| | |
|
| | | int.TryParse(tables[26],out RecoveryFrames); |
| | |
|
| | | int.TryParse(tables[27],out LoopCount); |
| | |
|
| | | int.TryParse(tables[28],out CastPosition); |
| | |
|
| | | int.TryParse(tables[29],out CastIndexNum); |
| | |
|
| | | float.TryParse(tables[30],out CastDistance); |
| | |
|
| | | DamageDivide = JsonMapper.ToObject<int[][]>(tables[31].Replace("(", "[").Replace(")", "]")); |
| | |
|
| | | int.TryParse(tables[32],out BulletEffectId); |
| | |
|
| | | int.TryParse(tables[33],out BulletPath); |
| | |
|
| | | float.TryParse(tables[34],out BulletFlySpeed); |
| | |
|
| | | int.TryParse(tables[35],out Scattering); |
| | |
|
| | | int.TryParse(tables[36],out ExplosionEffectId); |
| | |
|
| | | int.TryParse(tables[37],out ExplosionEffect2); |
| | |
|
| | | int.TryParse(tables[38],out ExplosionEffect3); |
| | |
|
| | | int.TryParse(tables[39],out ExplosionEffect4); |
| | |
|
| | | int.TryParse(tables[40],out EffectId); |
| | |
|
| | | int.TryParse(tables[41],out EffectId2); |
| | |
|
| | | int.TryParse(tables[42],out MStartEffectId); |
| | |
|
| | | int.TryParse(tables[43],out BuffEffect); |
| | |
|
| | | int.TryParse(tables[44],out TriggerEffect); |
| | | }
|
| | | catch (Exception exception)
|
| | | {
|