少年修仙传客户端代码仓库
client_Wu Xijin
2019-02-12 1aeb815836d84ecfddf761a47862efebbba0ad03
Core/GameEngine/Model/Config/ItemConfig.cs
@@ -1,260 +1,262 @@
//--------------------------------------------------------
//    [Author]:         第二世界
//    [  Date ]:         Tuesday, September 04, 2018
//--------------------------------------------------------
using UnityEngine;
using System;
namespace TableConfig {
   public partial class ItemConfig : ConfigBase {
      public int ID { get ; private set ; }
      public int LV { get ; private set ; }
      public string ItemName { get ; private set; }
      public int Type { get ; private set ; }
      public int EquipPlace { get ; private set ; }
      public int CanRepair { get ; private set ; }
      public int PackCount { get ; private set ; }
      public int UseLV { get ; private set ; }
      public int CanSell { get ; private set ; }
      public int CanTrade { get ; private set ; }
//--------------------------------------------------------
//    [Author]:         第二世界
//    [  Date ]:         Tuesday, February 12, 2019
//--------------------------------------------------------
using UnityEngine;
using System;
namespace TableConfig {
   public partial class ItemConfig : ConfigBase {
      public int ID;
      public int LV;
      public string ItemName;
      public int Type;
      public int EquipPlace;
      public int CanRepair;
      public int PackCount;
      public int UseLV;
      public int CanSell;
      public int CanTrade;
      public int[] JumpComposeCondi;
      public int CanDrop { get ; private set ; }
      public int CanBind { get ; private set ; }
      public int CDType { get ; private set ; }
      public int CDTime { get ; private set ; }
      public int GoldPrice { get ; private set ; }
      public int GoldPaperPrice { get ; private set ; }
      public int SilverPrice { get ; private set ; }
      public int UseTag { get ; private set ; }
      public int Effect1 { get ; private set ; }
      public int EffectValueA1 { get ; private set ; }
      public int EffectValueB1 { get ; private set ; }
      public int EffectValueC1 { get ; private set ; }
      public int Effect2 { get ; private set ; }
      public int EffectValueA2 { get ; private set ; }
      public int EffectValueB2 { get ; private set ; }
      public int EffectValueC2 { get ; private set ; }
      public int Effect3 { get ; private set ; }
      public int EffectValueA3 { get ; private set ; }
      public int EffectValueB3 { get ; private set ; }
      public int EffectValueC3 { get ; private set ; }
      public int Effect4 { get ; private set ; }
      public int EffectValueA4 { get ; private set ; }
      public int EffectValueB4 { get ; private set ; }
      public int EffectValueC4 { get ; private set ; }
      public int Effect5 { get ; private set ; }
      public int EffectValueA5 { get ; private set ; }
      public int EffectValueB5 { get ; private set ; }
      public int EffectValueC5 { get ; private set ; }
      public int AddSkill1 { get ; private set ; }
      public int JobLimit { get ; private set ; }
      public int RealmLimit { get ; private set ; }
      public int ItemColor { get ; private set ; }
      public int StarLevel { get ; private set ; }
      public int MaxHoleCount { get ; private set ; }
      public int CanBreak { get ; private set ; }
      public int MaxEndure { get ; private set ; }
      public int EndureReduceType { get ; private set ; }
      public int BindType { get ; private set ; }
      public int MaxSkillCnt { get ; private set ; }
      public int ExpireTime { get ; private set ; }
      public int MaxFitLV { get ; private set ; }
      public int SuiteiD { get ; private set ; }
      public string DropinstantEffName { get ; private set; }
      public string IconKey { get ; private set; }
      public int ChangeOrd { get ; private set ; }
      public string Description { get ; private set; }
      public string QualityName { get ; private set; }
      public int QualityEchoType { get ; private set ; }
      public int LimitSTR { get ; private set ; }
      public int LimitPHY { get ; private set ; }
      public int LimitPNE { get ; private set ; }
      public string Template { get ; private set; }
      public int DropItemPattern { get ; private set ; }
      public int SellTip { get ; private set ; }
      public int BatchUse { get ; private set ; }
      public int Jump { get ; private set ; }
      public int CanDrop;
      public int CanBind;
      public int CDType;
      public int CDTime;
      public int GoldPrice;
      public int GoldPaperPrice;
      public int SilverPrice;
      public int UseTag;
      public int Effect1;
      public int EffectValueA1;
      public int EffectValueB1;
      public int EffectValueC1;
      public int Effect2;
      public int EffectValueA2;
      public int EffectValueB2;
      public int EffectValueC2;
      public int Effect3;
      public int EffectValueA3;
      public int EffectValueB3;
      public int EffectValueC3;
      public int Effect4;
      public int EffectValueA4;
      public int EffectValueB4;
      public int EffectValueC4;
      public int Effect5;
      public int EffectValueA5;
      public int EffectValueB5;
      public int EffectValueC5;
      public int AddSkill1;
      public int JobLimit;
      public int RealmLimit;
      public int ItemColor;
      public int StarLevel;
      public int MaxHoleCount;
      public int CanBreak;
      public int MaxEndure;
      public int EndureReduceType;
      public int BindType;
      public int MaxSkillCnt;
      public int ExpireTime;
      public int MaxFitLV;
      public int SuiteiD;
      public string DropinstantEffName;
      public string IconKey;
      public int ChangeOrd;
      public string Description;
      public string QualityName;
      public int QualityEchoType;
      public int LimitSTR;
      public int LimitPHY;
      public int LimitPNE;
      public string Template;
      public int DropItemPattern;
      public int SellTip;
      public int BatchUse;
      public int Jump;
      public int[] GetWay;
      public string ItemTypeName { get ; private set; }
      public int[] UseCondiType;
      public override string getKey()
        {
            return ID.ToString();
        }
      public override void Parse() {
         try
            {
                ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
      public string ItemTypeName;
      public int[] UseCondiType;
      public override string getKey()
        {
            return ID.ToString();
        }
      public override void Parse(string content) {
         try
            {
                var contents = content.Split('\t');
                int.TryParse(contents[0],out ID);
         
            LV=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
            int.TryParse(contents[1],out LV);
         
            ItemName = rawContents[2].Trim();
            ItemName = contents[2];
         
            Type=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0;
            int.TryParse(contents[3],out Type);
         
            EquipPlace=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0;
            int.TryParse(contents[4],out EquipPlace);
         
            CanRepair=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0;
            int.TryParse(contents[5],out CanRepair);
         
            PackCount=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0;
            int.TryParse(contents[6],out PackCount);
         
            UseLV=IsNumeric(rawContents[7]) ? int.Parse(rawContents[7]):0;
            int.TryParse(contents[7],out UseLV);
         
            CanSell=IsNumeric(rawContents[8]) ? int.Parse(rawContents[8]):0;
            int.TryParse(contents[8],out CanSell);
         
            CanTrade=IsNumeric(rawContents[9]) ? int.Parse(rawContents[9]):0;
            int.TryParse(contents[9],out CanTrade);
         
            string[] JumpComposeCondiStringArray = rawContents[10].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
            var JumpComposeCondiStringArray = contents[10].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
            JumpComposeCondi = new int[JumpComposeCondiStringArray.Length];
            for (int i=0;i<JumpComposeCondiStringArray.Length;i++)
            {
                int.TryParse(JumpComposeCondiStringArray[i],out JumpComposeCondi[i]);
            }
         
            CanDrop=IsNumeric(rawContents[11]) ? int.Parse(rawContents[11]):0;
            int.TryParse(contents[11],out CanDrop);
         
            CanBind=IsNumeric(rawContents[12]) ? int.Parse(rawContents[12]):0;
            int.TryParse(contents[12],out CanBind);
         
            CDType=IsNumeric(rawContents[13]) ? int.Parse(rawContents[13]):0;
            int.TryParse(contents[13],out CDType);
         
            CDTime=IsNumeric(rawContents[14]) ? int.Parse(rawContents[14]):0;
            int.TryParse(contents[14],out CDTime);
         
            GoldPrice=IsNumeric(rawContents[15]) ? int.Parse(rawContents[15]):0;
            int.TryParse(contents[15],out GoldPrice);
         
            GoldPaperPrice=IsNumeric(rawContents[16]) ? int.Parse(rawContents[16]):0;
            int.TryParse(contents[16],out GoldPaperPrice);
         
            SilverPrice=IsNumeric(rawContents[17]) ? int.Parse(rawContents[17]):0;
            int.TryParse(contents[17],out SilverPrice);
         
            UseTag=IsNumeric(rawContents[18]) ? int.Parse(rawContents[18]):0;
            int.TryParse(contents[18],out UseTag);
         
            Effect1=IsNumeric(rawContents[19]) ? int.Parse(rawContents[19]):0;
            int.TryParse(contents[19],out Effect1);
         
            EffectValueA1=IsNumeric(rawContents[20]) ? int.Parse(rawContents[20]):0;
            int.TryParse(contents[20],out EffectValueA1);
         
            EffectValueB1=IsNumeric(rawContents[21]) ? int.Parse(rawContents[21]):0;
            int.TryParse(contents[21],out EffectValueB1);
         
            EffectValueC1=IsNumeric(rawContents[22]) ? int.Parse(rawContents[22]):0;
            int.TryParse(contents[22],out EffectValueC1);
         
            Effect2=IsNumeric(rawContents[23]) ? int.Parse(rawContents[23]):0;
            int.TryParse(contents[23],out Effect2);
         
            EffectValueA2=IsNumeric(rawContents[24]) ? int.Parse(rawContents[24]):0;
            int.TryParse(contents[24],out EffectValueA2);
         
            EffectValueB2=IsNumeric(rawContents[25]) ? int.Parse(rawContents[25]):0;
            int.TryParse(contents[25],out EffectValueB2);
         
            EffectValueC2=IsNumeric(rawContents[26]) ? int.Parse(rawContents[26]):0;
            int.TryParse(contents[26],out EffectValueC2);
         
            Effect3=IsNumeric(rawContents[27]) ? int.Parse(rawContents[27]):0;
            int.TryParse(contents[27],out Effect3);
         
            EffectValueA3=IsNumeric(rawContents[28]) ? int.Parse(rawContents[28]):0;
            int.TryParse(contents[28],out EffectValueA3);
         
            EffectValueB3=IsNumeric(rawContents[29]) ? int.Parse(rawContents[29]):0;
            int.TryParse(contents[29],out EffectValueB3);
         
            EffectValueC3=IsNumeric(rawContents[30]) ? int.Parse(rawContents[30]):0;
            int.TryParse(contents[30],out EffectValueC3);
         
            Effect4=IsNumeric(rawContents[31]) ? int.Parse(rawContents[31]):0;
            int.TryParse(contents[31],out Effect4);
         
            EffectValueA4=IsNumeric(rawContents[32]) ? int.Parse(rawContents[32]):0;
            int.TryParse(contents[32],out EffectValueA4);
         
            EffectValueB4=IsNumeric(rawContents[33]) ? int.Parse(rawContents[33]):0;
            int.TryParse(contents[33],out EffectValueB4);
         
            EffectValueC4=IsNumeric(rawContents[34]) ? int.Parse(rawContents[34]):0;
            int.TryParse(contents[34],out EffectValueC4);
         
            Effect5=IsNumeric(rawContents[35]) ? int.Parse(rawContents[35]):0;
            int.TryParse(contents[35],out Effect5);
         
            EffectValueA5=IsNumeric(rawContents[36]) ? int.Parse(rawContents[36]):0;
            int.TryParse(contents[36],out EffectValueA5);
         
            EffectValueB5=IsNumeric(rawContents[37]) ? int.Parse(rawContents[37]):0;
            int.TryParse(contents[37],out EffectValueB5);
         
            EffectValueC5=IsNumeric(rawContents[38]) ? int.Parse(rawContents[38]):0;
            int.TryParse(contents[38],out EffectValueC5);
         
            AddSkill1=IsNumeric(rawContents[39]) ? int.Parse(rawContents[39]):0;
            int.TryParse(contents[39],out AddSkill1);
         
            JobLimit=IsNumeric(rawContents[40]) ? int.Parse(rawContents[40]):0;
            int.TryParse(contents[40],out JobLimit);
         
            RealmLimit=IsNumeric(rawContents[41]) ? int.Parse(rawContents[41]):0;
            int.TryParse(contents[41],out RealmLimit);
         
            ItemColor=IsNumeric(rawContents[42]) ? int.Parse(rawContents[42]):0;
            int.TryParse(contents[42],out ItemColor);
         
            StarLevel=IsNumeric(rawContents[43]) ? int.Parse(rawContents[43]):0;
            int.TryParse(contents[43],out StarLevel);
         
            MaxHoleCount=IsNumeric(rawContents[44]) ? int.Parse(rawContents[44]):0;
            int.TryParse(contents[44],out MaxHoleCount);
         
            CanBreak=IsNumeric(rawContents[45]) ? int.Parse(rawContents[45]):0;
            int.TryParse(contents[45],out CanBreak);
         
            MaxEndure=IsNumeric(rawContents[46]) ? int.Parse(rawContents[46]):0;
            int.TryParse(contents[46],out MaxEndure);
         
            EndureReduceType=IsNumeric(rawContents[47]) ? int.Parse(rawContents[47]):0;
            int.TryParse(contents[47],out EndureReduceType);
         
            BindType=IsNumeric(rawContents[48]) ? int.Parse(rawContents[48]):0;
            int.TryParse(contents[48],out BindType);
         
            MaxSkillCnt=IsNumeric(rawContents[49]) ? int.Parse(rawContents[49]):0;
            int.TryParse(contents[49],out MaxSkillCnt);
         
            ExpireTime=IsNumeric(rawContents[50]) ? int.Parse(rawContents[50]):0;
            int.TryParse(contents[50],out ExpireTime);
         
            MaxFitLV=IsNumeric(rawContents[51]) ? int.Parse(rawContents[51]):0;
            int.TryParse(contents[51],out MaxFitLV);
         
            SuiteiD=IsNumeric(rawContents[52]) ? int.Parse(rawContents[52]):0;
            int.TryParse(contents[52],out SuiteiD);
         
            DropinstantEffName = rawContents[53].Trim();
            DropinstantEffName = contents[53];
         
            IconKey = rawContents[54].Trim();
            IconKey = contents[54];
         
            ChangeOrd=IsNumeric(rawContents[55]) ? int.Parse(rawContents[55]):0;
            int.TryParse(contents[55],out ChangeOrd);
         
            Description = rawContents[56].Trim();
            Description = contents[56];
         
            QualityName = rawContents[57].Trim();
            QualityName = contents[57];
         
            QualityEchoType=IsNumeric(rawContents[58]) ? int.Parse(rawContents[58]):0;
            int.TryParse(contents[58],out QualityEchoType);
         
            LimitSTR=IsNumeric(rawContents[59]) ? int.Parse(rawContents[59]):0;
            int.TryParse(contents[59],out LimitSTR);
         
            LimitPHY=IsNumeric(rawContents[60]) ? int.Parse(rawContents[60]):0;
            int.TryParse(contents[60],out LimitPHY);
         
            LimitPNE=IsNumeric(rawContents[61]) ? int.Parse(rawContents[61]):0;
            int.TryParse(contents[61],out LimitPNE);
         
            Template = rawContents[62].Trim();
            Template = contents[62];
         
            DropItemPattern=IsNumeric(rawContents[63]) ? int.Parse(rawContents[63]):0;
            int.TryParse(contents[63],out DropItemPattern);
         
            SellTip=IsNumeric(rawContents[64]) ? int.Parse(rawContents[64]):0;
            int.TryParse(contents[64],out SellTip);
         
            BatchUse=IsNumeric(rawContents[65]) ? int.Parse(rawContents[65]):0;
            int.TryParse(contents[65],out BatchUse);
         
            Jump=IsNumeric(rawContents[66]) ? int.Parse(rawContents[66]):0;
            int.TryParse(contents[66],out Jump);
         
            string[] GetWayStringArray = rawContents[67].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
            var GetWayStringArray = contents[67].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
            GetWay = new int[GetWayStringArray.Length];
            for (int i=0;i<GetWayStringArray.Length;i++)
            {
                int.TryParse(GetWayStringArray[i],out GetWay[i]);
            }
         
            ItemTypeName = rawContents[68].Trim();
            ItemTypeName = contents[68];
         
            string[] UseCondiTypeStringArray = rawContents[69].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
            var UseCondiTypeStringArray = contents[69].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
            UseCondiType = new int[UseCondiTypeStringArray.Length];
            for (int i=0;i<UseCondiTypeStringArray.Length;i++)
            {
                int.TryParse(UseCondiTypeStringArray[i],out UseCondiType[i]);
            }
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
      }
   }
}
            }
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
      }
   }
}