| | |
| | | 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))
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | 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);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | return null;
|
| | | }
|
| | |
|
| | | public static bool TryGetTicketCompose(int _ticketId, out List<ItemCompoundConfig> list)
|
| | | {
|
| | | return ticketComposeDict.TryGetValue(_ticketId, out list);
|
| | | }
|
| | |
|
| | | }
|
| | | }
|
| | |
|