| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: YYL |
| | | // [ Date ]: 2025年8月5日 |
| | | // [ Date ]: 2025年8月7日 |
| | | //-------------------------------------------------------- |
| | | |
| | | using System.Collections.Generic; |
| | |
| | | } |
| | | |
| | | public int SkillID; |
| | | public int SkillTypeID; |
| | | public int SkillMaxLV; |
| | | public string SkillName; |
| | | public string Description; |
| | | public string IconName; |
| | | public int FuncType; |
| | | public int SkillType; |
| | | public int HurtType; |
| | | public int AtkType; |
| | | public int TagAim; |
| | | public int TagFriendly; |
| | | public int TagAffect; |
| | | public int TagCount; |
| | | public int HappenRate; |
| | | public int LastTime; |
| | | public int CoolDownTime; |
| | | public int Priority; |
| | | public int EffectID1; |
| | | public int[] EffectValues1; |
| | | public int EffectID2; |
| | |
| | | public int EffectId; |
| | | public int EffectPos; |
| | | public int EffectType; |
| | | public string IconName; |
| | | |
| | | 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); |
| | | |
| | | Description = tables[2]; |
| | | int.TryParse(tables[2],out SkillMaxLV); |
| | | |
| | | IconName = tables[3]; |
| | | SkillName = tables[3]; |
| | | |
| | | int.TryParse(tables[4],out FuncType); |
| | | Description = tables[4]; |
| | | |
| | | int.TryParse(tables[5],out SkillType); |
| | | int.TryParse(tables[5],out FuncType); |
| | | |
| | | int.TryParse(tables[6],out HurtType); |
| | | int.TryParse(tables[6],out SkillType); |
| | | |
| | | int.TryParse(tables[7],out AtkType); |
| | | int.TryParse(tables[7],out HurtType); |
| | | |
| | | int.TryParse(tables[8],out TagAim); |
| | | int.TryParse(tables[8],out AtkType); |
| | | |
| | | int.TryParse(tables[9],out LastTime); |
| | | int.TryParse(tables[9],out TagAim); |
| | | |
| | | int.TryParse(tables[10],out CoolDownTime); |
| | | int.TryParse(tables[10],out TagFriendly); |
| | | |
| | | int.TryParse(tables[11],out EffectID1); |
| | | int.TryParse(tables[11],out TagAffect); |
| | | |
| | | if (tables[12].Contains("[")) |
| | | int.TryParse(tables[12],out TagCount); |
| | | |
| | | int.TryParse(tables[13],out HappenRate); |
| | | |
| | | int.TryParse(tables[14],out LastTime); |
| | | |
| | | int.TryParse(tables[15],out CoolDownTime); |
| | | |
| | | int.TryParse(tables[16],out Priority); |
| | | |
| | | int.TryParse(tables[17],out EffectID1); |
| | | |
| | | if (tables[18].Contains("[")) |
| | | { |
| | | EffectValues1 = JsonMapper.ToObject<int[]>(tables[12]); |
| | | EffectValues1 = JsonMapper.ToObject<int[]>(tables[18]); |
| | | } |
| | | else |
| | | { |
| | | string[] EffectValues1StringArray = tables[12].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] EffectValues1StringArray = tables[18].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | EffectValues1 = new int[EffectValues1StringArray.Length]; |
| | | for (int i=0;i<EffectValues1StringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | int.TryParse(tables[13],out EffectID2); |
| | | int.TryParse(tables[19],out EffectID2); |
| | | |
| | | if (tables[14].Contains("[")) |
| | | if (tables[20].Contains("[")) |
| | | { |
| | | EffectValues2 = JsonMapper.ToObject<int[]>(tables[14]); |
| | | EffectValues2 = JsonMapper.ToObject<int[]>(tables[20]); |
| | | } |
| | | else |
| | | { |
| | | string[] EffectValues2StringArray = tables[14].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] EffectValues2StringArray = tables[20].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | EffectValues2 = new int[EffectValues2StringArray.Length]; |
| | | for (int i=0;i<EffectValues2StringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | int.TryParse(tables[15],out EffectID3); |
| | | int.TryParse(tables[21],out EffectID3); |
| | | |
| | | if (tables[16].Contains("[")) |
| | | if (tables[22].Contains("[")) |
| | | { |
| | | EffectValues3 = JsonMapper.ToObject<int[]>(tables[16]); |
| | | EffectValues3 = JsonMapper.ToObject<int[]>(tables[22]); |
| | | } |
| | | else |
| | | { |
| | | string[] EffectValues3StringArray = tables[16].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] EffectValues3StringArray = tables[22].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | EffectValues3 = new int[EffectValues3StringArray.Length]; |
| | | for (int i=0;i<EffectValues3StringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | int.TryParse(tables[17],out ConnSkill); |
| | | int.TryParse(tables[23],out ConnSkill); |
| | | |
| | | if (tables[18].Contains("[")) |
| | | if (tables[24].Contains("[")) |
| | | { |
| | | EnhanceSkillList = JsonMapper.ToObject<int[]>(tables[18]); |
| | | EnhanceSkillList = JsonMapper.ToObject<int[]>(tables[24]); |
| | | } |
| | | else |
| | | { |
| | | string[] EnhanceSkillListStringArray = tables[18].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] EnhanceSkillListStringArray = tables[24].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | EnhanceSkillList = new int[EnhanceSkillListStringArray.Length]; |
| | | for (int i=0;i<EnhanceSkillListStringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | int.TryParse(tables[19],out FightPower); |
| | | int.TryParse(tables[25],out FightPower); |
| | | |
| | | int.TryParse(tables[20],out StartupFrames); |
| | | int.TryParse(tables[26],out StartupFrames); |
| | | |
| | | int.TryParse(tables[21],out ActiveFrames); |
| | | int.TryParse(tables[27],out ActiveFrames); |
| | | |
| | | int.TryParse(tables[22],out RecoveryFrames); |
| | | int.TryParse(tables[28],out RecoveryFrames); |
| | | |
| | | int.TryParse(tables[23],out LoopCount); |
| | | int.TryParse(tables[29],out LoopCount); |
| | | |
| | | int.TryParse(tables[24],out CastPosition); |
| | | int.TryParse(tables[30],out CastPosition); |
| | | |
| | | int.TryParse(tables[25],out CastIndexNum); |
| | | int.TryParse(tables[31],out CastIndexNum); |
| | | |
| | | float.TryParse(tables[26],out CastDistance); |
| | | float.TryParse(tables[32],out CastDistance); |
| | | |
| | | DamageDivide = JsonMapper.ToObject<int[][]>(tables[27].Replace("(", "[").Replace(")", "]")); |
| | | DamageDivide = JsonMapper.ToObject<int[][]>(tables[33].Replace("(", "[").Replace(")", "]")); |
| | | |
| | | int.TryParse(tables[28],out BulletEffectId); |
| | | int.TryParse(tables[34],out BulletEffectId); |
| | | |
| | | int.TryParse(tables[29],out BulletPos); |
| | | int.TryParse(tables[35],out BulletPos); |
| | | |
| | | int.TryParse(tables[30],out BulletPath); |
| | | int.TryParse(tables[36],out BulletPath); |
| | | |
| | | int.TryParse(tables[31],out BulletFlyTime); |
| | | int.TryParse(tables[37],out BulletFlyTime); |
| | | |
| | | int.TryParse(tables[32],out ExplosionEffectId); |
| | | int.TryParse(tables[38],out ExplosionEffectId); |
| | | |
| | | int.TryParse(tables[33],out ExplosionPos); |
| | | int.TryParse(tables[39],out ExplosionPos); |
| | | |
| | | SkillMotionName = tables[34]; |
| | | SkillMotionName = tables[40]; |
| | | |
| | | int.TryParse(tables[35],out EffectId); |
| | | int.TryParse(tables[41],out EffectId); |
| | | |
| | | int.TryParse(tables[36],out EffectPos); |
| | | int.TryParse(tables[42],out EffectPos); |
| | | |
| | | int.TryParse(tables[37],out EffectType); |
| | | int.TryParse(tables[43],out EffectType); |
| | | |
| | | IconName = tables[44]; |
| | | } |
| | | catch (Exception exception) |
| | | { |