| | |
| | | public int[] StoreRedIdlist { get; private set;}
|
| | | public override void Init()
|
| | | {
|
| | | FuncConfigConfig buyItemHinit = ConfigManager.Instance.GetTemplate<FuncConfigConfig>("BuyItemHinit");
|
| | | FuncConfigConfig buyItemHinit = Config.Instance.Get<FuncConfigConfig>("BuyItemHinit");
|
| | | normalBuyCoinsTypes = ConfigParse.GetMultipleStr<int>(buyItemHinit.Numerical1);
|
| | | FuncConfigConfig restTimeConfig = ConfigManager.Instance.GetTemplate<FuncConfigConfig>("RefreshText");
|
| | | FuncConfigConfig restTimeConfig = Config.Instance.Get<FuncConfigConfig>("RefreshText");
|
| | | resetTimeDict = ConfigParse.GetDic<int, string>(restTimeConfig.Numerical1);
|
| | | FuncConfigConfig mallCurrency = ConfigManager.Instance.GetTemplate<FuncConfigConfig>("MallCurrency");
|
| | | FuncConfigConfig mallCurrency = Config.Instance.Get<FuncConfigConfig>("MallCurrency");
|
| | | showCoinsUIDict = ConfigParse.GetDic<int, int>(mallCurrency.Numerical1);
|
| | | FuncConfigConfig mallPush = ConfigManager.Instance.GetTemplate<FuncConfigConfig>("MallPush");
|
| | | FuncConfigConfig mallPush = Config.Instance.Get<FuncConfigConfig>("MallPush");
|
| | | StoreRedIdlist = ConfigParse.GetMultipleStr<int>(mallPush.Numerical2);
|
| | | }
|
| | |
|
| | |
| | | public void SetJobReplaceIDDict()
|
| | | {
|
| | | JobReplaceIdDict.Clear();
|
| | | List<StoreConfig> storeConfigs = ConfigManager.Instance.GetAllValues<StoreConfig>();
|
| | | List<StoreConfig> storeConfigs = Config.Instance.GetAllValues<StoreConfig>();
|
| | | for(int i = 0; i < storeConfigs.Count; i++)
|
| | | {
|
| | | Dictionary<int, int> replaceItemDict = new Dictionary<int, int>();
|
| | |
| | |
|
| | | public RuneTowerFloorConfig SetRuneSource(int itemId)
|
| | | {
|
| | | _tagRuneModel = ConfigManager.Instance.GetTemplate<RuneConfig>(itemId);
|
| | | _tagRuneModel = Config.Instance.Get<RuneConfig>(itemId);
|
| | | if (_tagRuneModel == null)
|
| | | return null;
|
| | | var _tagRuneTowerModel = ConfigManager.Instance.GetTemplate<RuneTowerFloorConfig>(_tagRuneModel.TowerID);
|
| | | var _tagRuneTowerModel = Config.Instance.Get<RuneTowerFloorConfig>(_tagRuneModel.TowerID);
|
| | | return _tagRuneTowerModel;
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if ((StoreFunc)model.ShopType == StoreFunc.RuneStore)
|
| | | {
|
| | | _tagRuneModel = ConfigManager.Instance.GetTemplate<RuneConfig>(model.ItemID);
|
| | | _tagRuneModel = Config.Instance.Get<RuneConfig>(model.ItemID);
|
| | | if (_tagRuneModel != null)
|
| | | {
|
| | | if (!IsCanBuyItem(_tagRuneModel.TowerID))
|
| | |
| | | public void GetBuyResult(HA811_tagMCShoppingResult result)
|
| | | {
|
| | | DebugEx.Log("GetBuyResult");
|
| | | StoreConfig tagStore = ConfigManager.Instance.GetTemplate<StoreConfig>((int)result.ItemIndex);
|
| | | StoreConfig tagStore = Config.Instance.Get<StoreConfig>((int)result.ItemIndex);
|
| | | if (tagStore != null)
|
| | | {
|
| | | ItemConfig chinModel = ConfigManager.Instance.GetTemplate<ItemConfig>(ReplaceItemIdByJob(tagStore.ID, tagStore.ItemID));
|
| | | ItemConfig chinModel = Config.Instance.Get<ItemConfig>(ReplaceItemIdByJob(tagStore.ID, tagStore.ItemID));
|
| | | if (!normalBuyCoinsTypes.Contains(tagStore.MoneyType))
|
| | | {
|
| | | if (tagStore.RemindSuccess == 0)
|
| | |
| | | /// <returns></returns>
|
| | | public bool CheckTheOnlyShopSellOut(int shopIndex,out bool isTheOnlyShop)
|
| | | {
|
| | | StoreConfig storeConfig = ConfigManager.Instance.GetTemplate<StoreConfig>(shopIndex);
|
| | | StoreConfig storeConfig = Config.Instance.Get<StoreConfig>(shopIndex);
|
| | | isTheOnlyShop = false;
|
| | | if (storeConfig == null) return false;
|
| | |
|
| | |
| | |
|
| | | foreach(var key in shopRedDict.Keys)
|
| | | {
|
| | | StoreConfig storeConfig = ConfigManager.Instance.GetTemplate<StoreConfig>(key);
|
| | | StoreConfig storeConfig = Config.Instance.Get<StoreConfig>(key);
|
| | | if (storeConfig.MoneyNumber == 0)
|
| | | {
|
| | | if(CheckShopIsCanBuy(storeConfig))
|