From 2df58aeacbf1177ec01167bdeccfe89d6a8d5804 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期三, 13 二月 2019 14:20:28 +0800
Subject: [PATCH] 3335 配置表读取重构,修改配置表读取接口1
---
System/Chat/ChatCtrl.cs | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/System/Chat/ChatCtrl.cs b/System/Chat/ChatCtrl.cs
index eea6945..b6f647c 100644
--- a/System/Chat/ChatCtrl.cs
+++ b/System/Chat/ChatCtrl.cs
@@ -180,7 +180,7 @@
presentChatType = ChatInfoType.World;
IsExtentOpen = false;
- var _funcCfg = Config.Instance.Get<FuncConfigConfig>("BugleItem");
+ var _funcCfg = FuncConfigConfig.Get("BugleItem");
BugleItem = int.Parse(_funcCfg.Numerical1);
DTC0102_tagCDBPlayer.switchAccountEvent += SwitchAccountEvent;
@@ -189,7 +189,7 @@
InitChatRedpoints();
- FuncConfigConfig _cfg = Config.Instance.Get<FuncConfigConfig>("RandomWord");
+ FuncConfigConfig _cfg = FuncConfigConfig.Get("RandomWord");
try
{
achievementRandoms.Add(ChatInfoType.World, new List<string>(ConfigParse.GetMultipleStr(_cfg.Numerical1)));
@@ -770,7 +770,7 @@
int itemID = 0;
if (int.TryParse(strarray[0], out itemID))
{
- ItemConfig cfg = Config.Instance.Get<ItemConfig>(itemID);
+ ItemConfig cfg = ItemConfig.Get(itemID);
if (cfg != null)
{
try
@@ -853,7 +853,7 @@
var _length = _textBuilder.Length;
if (i < itemPlaceList.Count)
{
- ItemConfig cfg = Config.Instance.Get<ItemConfig>((int)itemPlaceList[i].itemInfo.ItemID);
+ ItemConfig cfg = ItemConfig.Get((int)itemPlaceList[i].itemInfo.ItemID);
if (cfg.ItemName == matchArray[i].Groups[1].Value)
{
bool equip = itemPlaceList[i].packType == PackType.rptEquip;
@@ -1081,7 +1081,7 @@
public bool flauntGemBind { get; set; }
public string GetGemFlauntChat()
{
- var config = Config.Instance.Get<ItemConfig>(flauntGemId);
+ var config = ItemConfig.Get(flauntGemId);
if (config != null)
{
ItemModel _item = new ItemModel(PackType.rptItem);
--
Gitblit v1.8.0