yyl
9 天以前 871594462e82d6bc1341918d39e11ab036d59563
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
//--------------------------------------------------------
//    [Author]:           YYL
//    [  Date ]:           Wednesday, September 10, 2025
//--------------------------------------------------------
 
using System.Collections.Generic;
using System;
using UnityEngine;
using LitJson;
 
public partial class ItemConfig : ConfigBase<int, ItemConfig>
{
    static ItemConfig()
    {
        // 访问过静态构造函数
        visit = true; 
    }
 
    public int ID;
    public int LV;
    public string ItemName;
    public int Type;
    public int EquipPlace;
    public int PackCount;
    public int UseLV;
    public int CDTypeEx;
    public int CDType;
    public int CDTime;
    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 AddSkill2;
    public int JobLimit;
    public int ItemColor;
    public int StarLevel;
    public int EndureReduceType;
    public int MaxSkillCnt;
    public int ExpireTime;
    public int SuiteiD;
    public string IconKey;
    public string Description;
    public int BatchUse;
    public int Jump;
    public int[] GetWay;
    public int BaseEffectID;
 
    public override int LoadKey(string _key)
    {
        int key = GetKey(_key);
        return key;
    }
 
    public override void LoadConfig(string input)
    {
        try {
        string[] tables = input.Split('\t');
        int.TryParse(tables[0],out ID); 
 
            int.TryParse(tables[1],out LV); 
 
            ItemName = tables[2];
 
            int.TryParse(tables[3],out Type); 
 
            int.TryParse(tables[4],out EquipPlace); 
 
            int.TryParse(tables[5],out PackCount); 
 
            int.TryParse(tables[6],out UseLV); 
 
            int.TryParse(tables[7],out CDTypeEx); 
 
            int.TryParse(tables[8],out CDType); 
 
            int.TryParse(tables[9],out CDTime); 
 
            int.TryParse(tables[10],out Effect1); 
 
            int.TryParse(tables[11],out EffectValueA1); 
 
            int.TryParse(tables[12],out EffectValueB1); 
 
            int.TryParse(tables[13],out EffectValueC1); 
 
            int.TryParse(tables[14],out Effect2); 
 
            int.TryParse(tables[15],out EffectValueA2); 
 
            int.TryParse(tables[16],out EffectValueB2); 
 
            int.TryParse(tables[17],out EffectValueC2); 
 
            int.TryParse(tables[18],out Effect3); 
 
            int.TryParse(tables[19],out EffectValueA3); 
 
            int.TryParse(tables[20],out EffectValueB3); 
 
            int.TryParse(tables[21],out EffectValueC3); 
 
            int.TryParse(tables[22],out Effect4); 
 
            int.TryParse(tables[23],out EffectValueA4); 
 
            int.TryParse(tables[24],out EffectValueB4); 
 
            int.TryParse(tables[25],out EffectValueC4); 
 
            int.TryParse(tables[26],out Effect5); 
 
            int.TryParse(tables[27],out EffectValueA5); 
 
            int.TryParse(tables[28],out EffectValueB5); 
 
            int.TryParse(tables[29],out EffectValueC5); 
 
            int.TryParse(tables[30],out AddSkill1); 
 
            int.TryParse(tables[31],out AddSkill2); 
 
            int.TryParse(tables[32],out JobLimit); 
 
            int.TryParse(tables[33],out ItemColor); 
 
            int.TryParse(tables[34],out StarLevel); 
 
            int.TryParse(tables[35],out EndureReduceType); 
 
            int.TryParse(tables[36],out MaxSkillCnt); 
 
            int.TryParse(tables[37],out ExpireTime); 
 
            int.TryParse(tables[38],out SuiteiD); 
 
            IconKey = tables[39];
 
            Description = tables[40];
 
            int.TryParse(tables[41],out BatchUse); 
 
            int.TryParse(tables[42],out Jump); 
 
            if (tables[43].Contains("["))
            {
                GetWay = JsonMapper.ToObject<int[]>(tables[43]);
            }
            else
            {
                string[] GetWayStringArray = tables[43].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]);
                }
            }
 
            int.TryParse(tables[44],out BaseEffectID); 
        }
        catch (Exception exception)
        {
            Debug.LogError(exception);
        }
    }
}