Beispiel #1
0
 public bool LoadFromFile(string path)
 {
     BoxProductInfo.Init(new TableLoaderLocalCSV <int, TDataBoxOpenInfo>(), path, "BoxOpenInfo.csv");
     CoopMode.Init(new TableLoaderLocalCSV <int, TDataCoopMode>(), path, "CoopMode.csv");
     CoopModeMinion.Init(new TableLoaderLocalCSV <int, TDataCoopModeMinion>(), path, "CoopModeMinion.csv");
     CoopModeBossInfo.Init(new TableLoaderLocalCSV <int, TDataCoopModeBossInfo>(), path, "CoopModeBossInfo.csv");
     DiceInfo.Init(new TableLoaderLocalCSV <int, TDataDiceInfo>(), path, "DiceInfo.csv");
     DiceUpgrade.Init(new TableLoaderLocalCSV <int, TDataDiceUpgrade>(), path, "DiceUpgrade.csv");
     DiceLevelInfo.Init(new TableLoaderLocalCSV <int, TDataDiceLevelInfo>(), path, "DiceLevelInfo.csv");
     GuardianInfo.Init(new TableLoaderLocalCSV <int, TDataGuardianInfo>(), path, "GuardianInfo.csv");
     Vsmode.Init(new TableLoaderLocalCSV <int, TDataVsmode>(), path, "Vsmode.csv");
     LangEN.Init(new TableLoaderLocalCSV <int, TDataLangEN>(), path, "LangEN.csv");
     LangKO.Init(new TableLoaderLocalCSV <int, TDataLangKO>(), path, "LangKO.csv");
     RankingReward.Init(new TableLoaderLocalCSV <int, TDataRankingReward>(), path, "RankingReward.csv");
     ClassInfo.Init(new TableLoaderLocalCSV <int, TDataClassInfo>(), path, "ClassInfo.csv");
     SeasonpassInfo.Init(new TableLoaderLocalCSV <int, TDataSeasonpassInfo>(), path, "SeasonpassInfo.csv");
     SeasonpassReward.Init(new TableLoaderLocalCSV <int, TDataSeasonpassReward>(), path, "SeasonpassReward.csv");
     ClassReward.Init(new TableLoaderLocalCSV <int, TDataClassReward>(), path, "ClassReward.csv");
     ItemList.Init(new TableLoaderLocalCSV <int, TDataItemList>(), path, "ItemList.csv");
     QuestInfo.Init(new TableLoaderLocalCSV <int, TDataQuestInfo>(), path, "QuestInfo.csv");
     QuestData.Init(new TableLoaderLocalCSV <int, TDataQuestData>(), path, "QuestData.csv");
     QuestDayReward.Init(new TableLoaderLocalCSV <int, TDataQuestDayReward>(), path, "QuestDayReward.csv");
     ShopInfo.Init(new TableLoaderLocalCSV <int, TDataShopInfo>(), path, "ShopInfo.csv");
     ShopProductList.Init(new TableLoaderLocalCSV <int, TDataShopProductList>(), path, "ShopProductList.csv");
     MailInfo.Init(new TableLoaderLocalCSV <int, TDataMailInfo>(), path, "MailInfo.csv");
     loaded = true;
     return(true);
 }
Beispiel #2
0
    bool OnReceiveQuestDailyRewardAck(ERandomwarsQuestErrorCode errorCode, QuestData[] arrayQuestData, ItemBaseInfo[] arrayRewardInfo, QuestDayReward dailyRewardInfo)
    {
        UI_Main.Get().obj_IndicatorPopup.SetActive(false);

        if (errorCode == ERandomwarsQuestErrorCode.Success)
        {
            arrIsDailyRewardGet = dailyRewardInfo.DayRewardState;
            // List<ItemBaseInfo> list = new List<ItemBaseInfo>();
            //
            // foreach (var reward in arrayRewardInfo)
            // {
            //     var data = new TDataItemList();
            //     if (TableManager.Get().ItemList.GetData(reward.ItemId, out data))
            //     {
            //         switch (data.id)
            //         {
            //             case 1:             // 골드
            //                 UserInfoManager.Get().GetUserInfo().gold += reward.Value;
            //                 UI_GetProduction.Get().Initialize(ITEM_TYPE.GOLD, mousePos, Mathf.Clamp(reward.Value, 5, 20));
            //                 break;
            //             case 2:             // 다이아
            //                 UserInfoManager.Get().GetUserInfo().diamond += reward.Value;
            //                 UI_GetProduction.Get().Initialize(ITEM_TYPE.DIAMOND, mousePos, Mathf.Clamp(reward.Value, 5, 20));
            //                 break;
            //             default: // 주사위
            //             {
            //                 ItemBaseInfo rw = new ItemBaseInfo();
            //                 rw.ItemId = reward.ItemId;
            //                 rw.Value = reward.Value;
            //                 list.Add(rw);
            //             }
            //                 break;
            //         }
            //     }
            // }
            //
            // if (list.Count > 0)
            // {
            //     UI_Main.Get().gerResult.Initialize(list.ToArray(), false, false);
            // }

            UserInfoManager.Get().GetUserInfo().AddItem(arrayRewardInfo, mousePos);

            QuestUpdate(arrayQuestData);

            InfoCallback();
        }

        return(true);
    }