//--------------------------------------------------------
|
// [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;
|
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;
|
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);
|
|
int.TryParse(contents[1],out LV);
|
|
ItemName = contents[2];
|
|
int.TryParse(contents[3],out Type);
|
|
int.TryParse(contents[4],out EquipPlace);
|
|
int.TryParse(contents[5],out CanRepair);
|
|
int.TryParse(contents[6],out PackCount);
|
|
int.TryParse(contents[7],out UseLV);
|
|
int.TryParse(contents[8],out CanSell);
|
|
int.TryParse(contents[9],out CanTrade);
|
|
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]);
|
}
|
|
int.TryParse(contents[11],out CanDrop);
|
|
int.TryParse(contents[12],out CanBind);
|
|
int.TryParse(contents[13],out CDType);
|
|
int.TryParse(contents[14],out CDTime);
|
|
int.TryParse(contents[15],out GoldPrice);
|
|
int.TryParse(contents[16],out GoldPaperPrice);
|
|
int.TryParse(contents[17],out SilverPrice);
|
|
int.TryParse(contents[18],out UseTag);
|
|
int.TryParse(contents[19],out Effect1);
|
|
int.TryParse(contents[20],out EffectValueA1);
|
|
int.TryParse(contents[21],out EffectValueB1);
|
|
int.TryParse(contents[22],out EffectValueC1);
|
|
int.TryParse(contents[23],out Effect2);
|
|
int.TryParse(contents[24],out EffectValueA2);
|
|
int.TryParse(contents[25],out EffectValueB2);
|
|
int.TryParse(contents[26],out EffectValueC2);
|
|
int.TryParse(contents[27],out Effect3);
|
|
int.TryParse(contents[28],out EffectValueA3);
|
|
int.TryParse(contents[29],out EffectValueB3);
|
|
int.TryParse(contents[30],out EffectValueC3);
|
|
int.TryParse(contents[31],out Effect4);
|
|
int.TryParse(contents[32],out EffectValueA4);
|
|
int.TryParse(contents[33],out EffectValueB4);
|
|
int.TryParse(contents[34],out EffectValueC4);
|
|
int.TryParse(contents[35],out Effect5);
|
|
int.TryParse(contents[36],out EffectValueA5);
|
|
int.TryParse(contents[37],out EffectValueB5);
|
|
int.TryParse(contents[38],out EffectValueC5);
|
|
int.TryParse(contents[39],out AddSkill1);
|
|
int.TryParse(contents[40],out JobLimit);
|
|
int.TryParse(contents[41],out RealmLimit);
|
|
int.TryParse(contents[42],out ItemColor);
|
|
int.TryParse(contents[43],out StarLevel);
|
|
int.TryParse(contents[44],out MaxHoleCount);
|
|
int.TryParse(contents[45],out CanBreak);
|
|
int.TryParse(contents[46],out MaxEndure);
|
|
int.TryParse(contents[47],out EndureReduceType);
|
|
int.TryParse(contents[48],out BindType);
|
|
int.TryParse(contents[49],out MaxSkillCnt);
|
|
int.TryParse(contents[50],out ExpireTime);
|
|
int.TryParse(contents[51],out MaxFitLV);
|
|
int.TryParse(contents[52],out SuiteiD);
|
|
DropinstantEffName = contents[53];
|
|
IconKey = contents[54];
|
|
int.TryParse(contents[55],out ChangeOrd);
|
|
Description = contents[56];
|
|
QualityName = contents[57];
|
|
int.TryParse(contents[58],out QualityEchoType);
|
|
int.TryParse(contents[59],out LimitSTR);
|
|
int.TryParse(contents[60],out LimitPHY);
|
|
int.TryParse(contents[61],out LimitPNE);
|
|
Template = contents[62];
|
|
int.TryParse(contents[63],out DropItemPattern);
|
|
int.TryParse(contents[64],out SellTip);
|
|
int.TryParse(contents[65],out BatchUse);
|
|
int.TryParse(contents[66],out Jump);
|
|
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 = contents[68];
|
|
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);
|
}
|
}
|
|
}
|
|
}
|
|
|
|
|