//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Tuesday, February 12, 2019 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class SkillConfig : ConfigBase { public int SkillID; public string SkillName; public int SkillTypeID; public int SkillLV; public int SkillMaxLV; public int UseType; 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 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 StateSkillLV; public int LearnSkillReq; public int LearnSkillLV; public int LearnLVReq; public int LearnSkillPointReq; 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 WarnInfo; public int CtrlActionID; public int BuffEffectID; public int EffectName; public string IconName; public string SkillNameIcon; public string Description; public string BuffDescription; public string Skillsource; public int Skillactmark; public int BuffDisplay; public override string getKey() { return SkillID.ToString(); } public override void Parse(string content) { try { var contents = content.Split('\t'); int.TryParse(contents[0],out SkillID); SkillName = contents[1]; int.TryParse(contents[2],out SkillTypeID); int.TryParse(contents[3],out SkillLV); int.TryParse(contents[4],out SkillMaxLV); int.TryParse(contents[5],out UseType); int.TryParse(contents[6],out FuncType); int.TryParse(contents[7],out CastTime); int.TryParse(contents[8],out SkillType); int.TryParse(contents[9],out HurtType); int.TryParse(contents[10],out ContinueUse); int.TryParse(contents[11],out AtkType); int.TryParse(contents[12],out AtkRadius); int.TryParse(contents[13],out Tag); int.TryParse(contents[14],out AtkDist); int.TryParse(contents[15],out StiffTime); int.TryParse(contents[16],out CoolDownTime); int.TryParse(contents[17],out MP); int.TryParse(contents[18],out HP); int.TryParse(contents[19],out XP); int.TryParse(contents[20],out UseItemID); int.TryParse(contents[21],out UseItemCount); int.TryParse(contents[22],out Effect1); int.TryParse(contents[23],out EffectValue11); int.TryParse(contents[24],out EffectValue12); int.TryParse(contents[25],out EffectValue13); int.TryParse(contents[26],out Effect2); int.TryParse(contents[27],out EffectValue21); int.TryParse(contents[28],out EffectValue22); int.TryParse(contents[29],out EffectValue23); int.TryParse(contents[30],out Effect3); int.TryParse(contents[31],out EffectValue31); int.TryParse(contents[32],out EffectValue32); int.TryParse(contents[33],out EffectValue33); int.TryParse(contents[34],out Effect4); int.TryParse(contents[35],out EffectValue41); int.TryParse(contents[36],out EffectValue42); int.TryParse(contents[37],out EffectValue43); int.TryParse(contents[38],out Effect5); int.TryParse(contents[39],out EffectValue51); int.TryParse(contents[40],out EffectValue52); int.TryParse(contents[41],out EffectValue53); int.TryParse(contents[42],out Effect6); int.TryParse(contents[43],out EffectValue61); int.TryParse(contents[44],out EffectValue62); int.TryParse(contents[45],out EffectValue63); int.TryParse(contents[46],out StateSkillLV); int.TryParse(contents[47],out LearnSkillReq); int.TryParse(contents[48],out LearnSkillLV); int.TryParse(contents[49],out LearnLVReq); int.TryParse(contents[50],out LearnSkillPointReq); int.TryParse(contents[51],out FightPower); int.TryParse(contents[52],out LVUpCostMoneyType); int.TryParse(contents[53],out LVUpCostMoney); int.TryParse(contents[54],out LVUpCostExp); int.TryParse(contents[55],out ClientActionLimit); int.TryParse(contents[56],out ClientSkillSeriesLimit); int.TryParse(contents[57],out SkillOfSeries); int.TryParse(contents[58],out ExpendMPRate); int.TryParse(contents[59],out ExAttr1); int.TryParse(contents[60],out ExAttr3); int.TryParse(contents[61],out ExAttr4); int.TryParse(contents[62],out ExAttr5); int.TryParse(contents[63],out WarnInfo); int.TryParse(contents[64],out CtrlActionID); int.TryParse(contents[65],out BuffEffectID); int.TryParse(contents[66],out EffectName); IconName = contents[67]; SkillNameIcon = contents[68]; Description = contents[69]; BuffDescription = contents[70]; Skillsource = contents[71]; int.TryParse(contents[72],out Skillactmark); int.TryParse(contents[73],out BuffDisplay); } catch (Exception ex) { DebugEx.Log(ex); } } } }