lcy
3 天以前 e19bcaa7ced9d17f7dae4672ae0c41710e178a60
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
//--------------------------------------------------------
//    [Author]:           YYL
//    [  Date ]:           Friday, October 3, 2025
//--------------------------------------------------------
 
using System.Collections.Generic;
using System;
using UnityEngine;
using LitJson;
 
public partial class FirstChargeConfig : ConfigBase<int, FirstChargeConfig>
{
    static FirstChargeConfig()
    {
        // 访问过静态构造函数
        visit = true; 
    }
 
    public int FirstID;
    public int CTGID;
    public int[][] AwardListDay1;
    public int[][] AwardListDay2;
    public int[][] AwardListDay3;
    public int ExtraRewardTextType;
    public string ExtraRewardTextInfo;
 
    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 FirstID); 
 
            int.TryParse(tables[1],out CTGID); 
 
            AwardListDay1 = JsonMapper.ToObject<int[][]>(tables[2].Replace("(", "[").Replace(")", "]")); 
 
            AwardListDay2 = JsonMapper.ToObject<int[][]>(tables[3].Replace("(", "[").Replace(")", "]")); 
 
            AwardListDay3 = JsonMapper.ToObject<int[][]>(tables[4].Replace("(", "[").Replace(")", "]")); 
 
            int.TryParse(tables[5],out ExtraRewardTextType); 
 
            ExtraRewardTextInfo = tables[6];
        }
        catch (Exception exception)
        {
            Debug.LogError(exception);
        }
    }
}