From 4a75fec2d1c5aac83fa06c08ded4015015b8c068 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期一, 13 八月 2018 17:04:39 +0800
Subject: [PATCH] 2474【前端】门票弹窗新增门票合成按钮
---
Core/GameEngine/Model/TelPartialConfig/tagItemCompoundConfig.cs | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/Core/GameEngine/Model/TelPartialConfig/tagItemCompoundConfig.cs b/Core/GameEngine/Model/TelPartialConfig/tagItemCompoundConfig.cs
index d217067..502a075 100644
--- a/Core/GameEngine/Model/TelPartialConfig/tagItemCompoundConfig.cs
+++ b/Core/GameEngine/Model/TelPartialConfig/tagItemCompoundConfig.cs
@@ -6,7 +6,7 @@
public partial class ItemCompoundConfig : ConfigBase, IConfigPostProcess
{
private static Dictionary<int, Dictionary<int, Dictionary<int, List<ItemCompoundConfig>>>> allComposeModelDict = new Dictionary<int, Dictionary<int, Dictionary<int, List<ItemCompoundConfig>>>>();
-
+ static Dictionary<int, List<ItemCompoundConfig>> ticketComposeDict = new Dictionary<int, List<ItemCompoundConfig>>();
public void OnConfigParseCompleted()
{
if (!allComposeModelDict.ContainsKey(firstType))
@@ -43,6 +43,21 @@
}
}
+ }
+
+ if (firstType == (int)ComposeFuncType.Ticket)
+ {
+ var makeItemArray = ConfigParse.GetMultipleStr<int>(makeID);
+ for (int i = 0; i < makeItemArray.Length; i++)
+ {
+ List<ItemCompoundConfig> list = null;
+ if (!ticketComposeDict.TryGetValue(makeItemArray[i], out list))
+ {
+ list = new List<ItemCompoundConfig>();
+ ticketComposeDict.Add(makeItemArray[i], list);
+ }
+ list.Add(this);
+ }
}
}
@@ -105,6 +120,11 @@
return null;
}
+ public static bool TryGetTicketCompose(int _ticketId, out List<ItemCompoundConfig> list)
+ {
+ return ticketComposeDict.TryGetValue(_ticketId, out list);
+ }
+
}
}
--
Gitblit v1.8.0