少年修仙传客户端代码仓库
client_Wu Xijin
2018-10-27 45c82c513c67130bb52cb5e7f2f10c957e463cf1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
//--------------------------------------------------------
//    [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 ; }
        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[] 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; 
            
                LV=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; 
            
                ItemName = rawContents[2].Trim();
            
                Type=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; 
            
                EquipPlace=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; 
            
                CanRepair=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0; 
            
                PackCount=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0; 
            
                UseLV=IsNumeric(rawContents[7]) ? int.Parse(rawContents[7]):0; 
            
                CanSell=IsNumeric(rawContents[8]) ? int.Parse(rawContents[8]):0; 
            
                CanTrade=IsNumeric(rawContents[9]) ? int.Parse(rawContents[9]):0; 
            
                string[] JumpComposeCondiStringArray = rawContents[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; 
            
                CanBind=IsNumeric(rawContents[12]) ? int.Parse(rawContents[12]):0; 
            
                CDType=IsNumeric(rawContents[13]) ? int.Parse(rawContents[13]):0; 
            
                CDTime=IsNumeric(rawContents[14]) ? int.Parse(rawContents[14]):0; 
            
                GoldPrice=IsNumeric(rawContents[15]) ? int.Parse(rawContents[15]):0; 
            
                GoldPaperPrice=IsNumeric(rawContents[16]) ? int.Parse(rawContents[16]):0; 
            
                SilverPrice=IsNumeric(rawContents[17]) ? int.Parse(rawContents[17]):0; 
            
                UseTag=IsNumeric(rawContents[18]) ? int.Parse(rawContents[18]):0; 
            
                Effect1=IsNumeric(rawContents[19]) ? int.Parse(rawContents[19]):0; 
            
                EffectValueA1=IsNumeric(rawContents[20]) ? int.Parse(rawContents[20]):0; 
            
                EffectValueB1=IsNumeric(rawContents[21]) ? int.Parse(rawContents[21]):0; 
            
                EffectValueC1=IsNumeric(rawContents[22]) ? int.Parse(rawContents[22]):0; 
            
                Effect2=IsNumeric(rawContents[23]) ? int.Parse(rawContents[23]):0; 
            
                EffectValueA2=IsNumeric(rawContents[24]) ? int.Parse(rawContents[24]):0; 
            
                EffectValueB2=IsNumeric(rawContents[25]) ? int.Parse(rawContents[25]):0; 
            
                EffectValueC2=IsNumeric(rawContents[26]) ? int.Parse(rawContents[26]):0; 
            
                Effect3=IsNumeric(rawContents[27]) ? int.Parse(rawContents[27]):0; 
            
                EffectValueA3=IsNumeric(rawContents[28]) ? int.Parse(rawContents[28]):0; 
            
                EffectValueB3=IsNumeric(rawContents[29]) ? int.Parse(rawContents[29]):0; 
            
                EffectValueC3=IsNumeric(rawContents[30]) ? int.Parse(rawContents[30]):0; 
            
                Effect4=IsNumeric(rawContents[31]) ? int.Parse(rawContents[31]):0; 
            
                EffectValueA4=IsNumeric(rawContents[32]) ? int.Parse(rawContents[32]):0; 
            
                EffectValueB4=IsNumeric(rawContents[33]) ? int.Parse(rawContents[33]):0; 
            
                EffectValueC4=IsNumeric(rawContents[34]) ? int.Parse(rawContents[34]):0; 
            
                Effect5=IsNumeric(rawContents[35]) ? int.Parse(rawContents[35]):0; 
            
                EffectValueA5=IsNumeric(rawContents[36]) ? int.Parse(rawContents[36]):0; 
            
                EffectValueB5=IsNumeric(rawContents[37]) ? int.Parse(rawContents[37]):0; 
            
                EffectValueC5=IsNumeric(rawContents[38]) ? int.Parse(rawContents[38]):0; 
            
                AddSkill1=IsNumeric(rawContents[39]) ? int.Parse(rawContents[39]):0; 
            
                JobLimit=IsNumeric(rawContents[40]) ? int.Parse(rawContents[40]):0; 
            
                RealmLimit=IsNumeric(rawContents[41]) ? int.Parse(rawContents[41]):0; 
            
                ItemColor=IsNumeric(rawContents[42]) ? int.Parse(rawContents[42]):0; 
            
                StarLevel=IsNumeric(rawContents[43]) ? int.Parse(rawContents[43]):0; 
            
                MaxHoleCount=IsNumeric(rawContents[44]) ? int.Parse(rawContents[44]):0; 
            
                CanBreak=IsNumeric(rawContents[45]) ? int.Parse(rawContents[45]):0; 
            
                MaxEndure=IsNumeric(rawContents[46]) ? int.Parse(rawContents[46]):0; 
            
                EndureReduceType=IsNumeric(rawContents[47]) ? int.Parse(rawContents[47]):0; 
            
                BindType=IsNumeric(rawContents[48]) ? int.Parse(rawContents[48]):0; 
            
                MaxSkillCnt=IsNumeric(rawContents[49]) ? int.Parse(rawContents[49]):0; 
            
                ExpireTime=IsNumeric(rawContents[50]) ? int.Parse(rawContents[50]):0; 
            
                MaxFitLV=IsNumeric(rawContents[51]) ? int.Parse(rawContents[51]):0; 
            
                SuiteiD=IsNumeric(rawContents[52]) ? int.Parse(rawContents[52]):0; 
            
                DropinstantEffName = rawContents[53].Trim();
            
                IconKey = rawContents[54].Trim();
            
                ChangeOrd=IsNumeric(rawContents[55]) ? int.Parse(rawContents[55]):0; 
            
                Description = rawContents[56].Trim();
            
                QualityName = rawContents[57].Trim();
            
                QualityEchoType=IsNumeric(rawContents[58]) ? int.Parse(rawContents[58]):0; 
            
                LimitSTR=IsNumeric(rawContents[59]) ? int.Parse(rawContents[59]):0; 
            
                LimitPHY=IsNumeric(rawContents[60]) ? int.Parse(rawContents[60]):0; 
            
                LimitPNE=IsNumeric(rawContents[61]) ? int.Parse(rawContents[61]):0; 
            
                Template = rawContents[62].Trim();
            
                DropItemPattern=IsNumeric(rawContents[63]) ? int.Parse(rawContents[63]):0; 
            
                SellTip=IsNumeric(rawContents[64]) ? int.Parse(rawContents[64]):0; 
            
                BatchUse=IsNumeric(rawContents[65]) ? int.Parse(rawContents[65]):0; 
            
                Jump=IsNumeric(rawContents[66]) ? int.Parse(rawContents[66]):0; 
            
                string[] GetWayStringArray = rawContents[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();
            
                string[] UseCondiTypeStringArray = rawContents[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);
            }
        }
    
    }
 
}