From c2d2d5d3a840bf50968b3f95e304929bc62a7b70 Mon Sep 17 00:00:00 2001
From: leonard Wu <364452445@qq.com>
Date: 星期五, 03 八月 2018 21:02:26 +0800
Subject: [PATCH] 更新代码
---
System/GeneralConfig/GeneralConfig.cs | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/System/GeneralConfig/GeneralConfig.cs b/System/GeneralConfig/GeneralConfig.cs
index 76759c2..01e13ec 100644
--- a/System/GeneralConfig/GeneralConfig.cs
+++ b/System/GeneralConfig/GeneralConfig.cs
@@ -120,7 +120,10 @@
public List<int> demonJarNoRebornRemindMaps = null;
public string[][] ModeDefaultConfig { get; private set; }
+ public int[] RealmGroup { get; private set; }
+ public float PrefightAtkRange { get; private set; }
+ public Dictionary<int, string> multipleRealmImgDict { get; private set; }
public void Init()
{
try
@@ -224,6 +227,20 @@
_pos[0] = (double)_data[_key][0];
_pos[1] = (double)_data[_key][1];
NpcPosOffset.Add(_npcID, new Vector3((float)_pos[0], 0, (float)_pos[1]));
+ }
+
+ FuncConfigConfig nxxdImg = ConfigManager.Instance.GetTemplate<FuncConfigConfig>("NXXDPicture");
+ LitJson.JsonData nxxdData = LitJson.JsonMapper.ToObject(nxxdImg.Numerical1);
+ multipleRealmImgDict = new Dictionary<int, string>();
+ if (nxxdData.IsArray)
+ {
+ for (i = 0; i < nxxdData.Count; i++)
+ {
+ if (nxxdData[i].IsArray)
+ {
+ multipleRealmImgDict.Add(int.Parse(nxxdData[i][0].ToString()), nxxdData[i][1].ToString());
+ }
+ }
}
bossShuntMaps = new List<int>(GetIntArray("BossShunt"));
@@ -395,6 +412,20 @@
ModeDefaultConfig[2] = _pet;
ModeDefaultConfig[3] = _horse;
}
+
+ if (RealmGroup == null)
+ {
+ func = ConfigManager.Instance.GetTemplate<FuncConfigConfig>("RealmGroup");
+ string[] _group = func.Numerical1.Split('|');
+ RealmGroup = new int[_group.Length];
+ for (int j = 0; j < _group.Length; ++j)
+ {
+ int.TryParse(_group[j], out RealmGroup[j]);
+ }
+ }
+
+ func = ConfigManager.Instance.GetTemplate<FuncConfigConfig>("PrefightAtkRange");
+ PrefightAtkRange = float.Parse(func.Numerical1);
}
catch (Exception ex)
{
--
Gitblit v1.8.0