| | |
| | | using System;
|
| | | using System.Text.RegularExpressions;
|
| | | using System.Linq;
|
| | | using Snxxz.UI;
|
| | |
|
| | | public class GeneralConfig : Singleton<GeneralConfig>
|
| | | {
|
| | |
| | |
|
| | | public string teamWorldCall;
|
| | | public int teamWorldCallInviteCount;
|
| | |
|
| | | public List<Item> ancientKingAwards = new List<Item>();
|
| | |
|
| | | public void Init()
|
| | | {
|
| | |
| | |
|
| | | teamWorldCall = GetInputString("TeamWorldCall");
|
| | | teamWorldCallInviteCount = GetInt("TeamWorldCall", 2);
|
| | |
|
| | | var ancientKingAwradConfig = Config.Instance.Get<FuncConfigConfig>("ElderBattlefieldTopAward");
|
| | | if (ancientKingAwradConfig != null)
|
| | | {
|
| | | var itemArray = LitJson.JsonMapper.ToObject<int[][]>(ancientKingAwradConfig.Numerical1);
|
| | | for (int k = 0; k < itemArray.Length; k++)
|
| | | {
|
| | | ancientKingAwards.Add(new Item()
|
| | | {
|
| | | id = itemArray[k][0],
|
| | | count = itemArray[k][1],
|
| | | bind = itemArray[k][2] == 1,
|
| | | });
|
| | | }
|
| | | }
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|