少年修仙传客户端代码仓库
hch
2025-04-03 c154ac0832fe4379a00d3e1cda700e7d2a7383c7
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
 
using System.Collections.Generic;
using System.Collections.Specialized;
using LitJson;
 
public partial class TreeLVConfig : IConfigPostProcess
{
    //¸ñʽ [[5000,[]],[10000,[3501,10]]]; [[¸ÅÂÊ£¬ÎïÆ·ÐÅÏ¢]]
    public static OrderedDictionary itemUnlockInfo = new OrderedDictionary();
 
    public void OnConfigParseCompleted()
    {
        if (ExAwardItemRateList.Length < 3)
            return;
        JsonData jsonData = JsonMapper.ToObject(ExAwardItemRateList);
        //²»ÒªÓÃvar »á±»½âÎö³Éobject ÓÃJsonData
        for (int i = 0; i < jsonData.Count; i++)
        {
            JsonData item = jsonData[i];
            if (item.Count < 2)
                continue;
            int rate = (int)item[0];
            JsonData itemInfo = item[1];
            if (itemInfo.Count < 2)
                continue;
            int itemId = (int)itemInfo[0];
            if (itemUnlockInfo.Contains(itemId))
            {
                continue;
            }
            itemUnlockInfo.Add(itemId, TreeLV);
        }
    }
 
 
}