少年修仙传客户端代码仓库
hch
2025-03-19 6770e1eb64c4282def45adb824b14b2a407fdd30
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 LitJson;
using vnxbqy.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
 
class ILGeneralDefine : ILModel<ILGeneralDefine>
{
    public const long BillionNum = (long)Constants.ExpPointValue;
    public int openActivityDays;    //开服运营活动天
    public static Dictionary<int, int> fbBuyTimes = new Dictionary<int, int>();
    public static List<int> crossServerDisResonReconn = new List<int>();  //需要断线重连的情况
    protected override void Init()
    {
        openActivityDays = int.Parse(FuncConfigConfig.Get("OperationAction").Numerical1);
 
        JsonData jsonData = JsonMapper.ToObject(FuncConfigConfig.Get("BuyFBCntCost").Numerical2);
        foreach (var key in jsonData.Keys)
        {
            int _mapId = int.Parse(key);
            fbBuyTimes.Add(_mapId, int.Parse(jsonData[key].ToString()));
        }
 
        crossServerDisResonReconn = JsonMapper.ToObject<int[]>(FuncConfigConfig.Get("CrossServerDisReason").Numerical1).ToList();
    }
 
    protected override void UnInit()
    {
 
    }
 
 
}