From f2cd8cf71a54e251e5f507c7d69c6f91f90e5074 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期二, 25 九月 2018 20:23:14 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
Core/GameEngine/Model/TelPartialConfig/tagItemCompoundConfig.cs | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/Core/GameEngine/Model/TelPartialConfig/tagItemCompoundConfig.cs b/Core/GameEngine/Model/TelPartialConfig/tagItemCompoundConfig.cs
index daac07e..b50908a 100644
--- a/Core/GameEngine/Model/TelPartialConfig/tagItemCompoundConfig.cs
+++ b/Core/GameEngine/Model/TelPartialConfig/tagItemCompoundConfig.cs
@@ -140,6 +140,21 @@
return null;
}
+ public static ItemCompoundConfig GetItemCompoundByType(int firstType,int secondType, int thirdType)
+ {
+ if(allComposeModelDict.ContainsKey(firstType))
+ {
+ if(allComposeModelDict[firstType].ContainsKey(secondType))
+ {
+ if(allComposeModelDict[firstType][secondType].ContainsKey(thirdType))
+ {
+ return allComposeModelDict[firstType][secondType][thirdType][0];
+ }
+ }
+ }
+ return null;
+ }
+
public static bool TryGetTicketCompose(int _ticketId, out List<ItemCompoundConfig> list)
{
return ticketComposeDict.TryGetValue(_ticketId, out list);
--
Gitblit v1.8.0