| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Thursday, May 03, 2018 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | |
| | | namespace TableConfig |
| | | { |
| | | public partial class SuccessConfig : ConfigBase, IConfigPostProcess |
| | | { |
| | | static Dictionary<int, List<int>> m_TreasureExpDict = new Dictionary<int, List<int>>(); |
| | | |
| | | public void OnConfigParseCompleted() |
| | | { |
| | | if (this.MagicWeaponID != 0) |
| | | { |
| | | List<int> _list; |
| | | m_TreasureExpDict.TryGetValue(this.MagicWeaponID, out _list); |
| | | if (_list == null) |
| | | { |
| | | _list = new List<int>(); |
| | | m_TreasureExpDict.Add(this.MagicWeaponID, _list); |
| | | } |
| | | _list.Add(this.ID); |
| | | } |
| | | } |
| | | |
| | | public static bool TryGetTreasureExpAchievements(int _treasureId, out List<int> _list) |
| | | { |
| | | return m_TreasureExpDict.TryGetValue(_treasureId, out _list); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Thursday, May 03, 2018
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using UnityEngine;
|
| | | using System;
|
| | | using System.Collections.Generic;
|
| | |
|
| | | namespace TableConfig
|
| | | {
|
| | | public partial class SuccessConfig : ConfigBase, IConfigPostProcess
|
| | | {
|
| | | static Dictionary<int, List<int>> m_TreasureExpDict = new Dictionary<int, List<int>>();
|
| | |
|
| | | public void OnConfigParseCompleted()
|
| | | {
|
| | | if (this.MagicWeaponID != 0)
|
| | | {
|
| | | List<int> _list;
|
| | | m_TreasureExpDict.TryGetValue(this.MagicWeaponID, out _list);
|
| | | if (_list == null)
|
| | | {
|
| | | _list = new List<int>();
|
| | | m_TreasureExpDict.Add(this.MagicWeaponID, _list);
|
| | | }
|
| | | _list.Add(this.ID);
|
| | | }
|
| | | }
|
| | |
|
| | | public static bool TryGetTreasureExpAchievements(int _treasureId, out List<int> _list)
|
| | | {
|
| | | return m_TreasureExpDict.TryGetValue(_treasureId, out _list);
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|