Exemple #1
0
 public override RequestBase CreateRequest()
 {
     GameWebAPI.RequestDataMA_WorldDungeonAdventureSceneMaster requestDataMA_WorldDungeonAdventureSceneMaster = new GameWebAPI.RequestDataMA_WorldDungeonAdventureSceneMaster();
     requestDataMA_WorldDungeonAdventureSceneMaster.SetSendData = delegate(GameWebAPI.RequestDataMA_WorldDungeonAdventureSceneM requestParam)
     {
         int countryCode = int.Parse(CountrySetting.GetCountryCode(CountrySetting.CountryCode.EN));
         requestParam.countryCode = countryCode;
     };
     requestDataMA_WorldDungeonAdventureSceneMaster.OnReceived = new Action <GameWebAPI.RespDataMA_WorldDungeonAdventureSceneMaster>(base.SetResponse);
     return(requestDataMA_WorldDungeonAdventureSceneMaster);
 }
 public override RequestBase CreateRequest()
 {
     GameWebAPI.RequestMA_MessageStringMaster requestMA_MessageStringMaster = new GameWebAPI.RequestMA_MessageStringMaster();
     requestMA_MessageStringMaster.SetSendData = delegate(GameWebAPI.RequestMA_MessageStringM requestParam)
     {
         int countryCode = int.Parse(CountrySetting.GetCountryCode(CountrySetting.CountryCode.EN));
         requestParam.countryCode = countryCode;
     };
     requestMA_MessageStringMaster.OnReceived = new Action <GameWebAPI.RespDataMA_MessageStringM>(base.SetResponse);
     return(requestMA_MessageStringMaster);
 }
 public override RequestBase CreateRequest()
 {
     GameWebAPI.RequestMA_MonsterMasterOnlyGroupData requestMA_MonsterMasterOnlyGroupData = new GameWebAPI.RequestMA_MonsterMasterOnlyGroupData();
     requestMA_MonsterMasterOnlyGroupData.SetSendData = delegate(GameWebAPI.RequestMA_MonsterM requestParam)
     {
         int countryCode = int.Parse(CountrySetting.GetCountryCode(CountrySetting.CountryCode.EN));
         requestParam.countryCode = countryCode;
     };
     requestMA_MonsterMasterOnlyGroupData.OnReceived = new Action <GameWebAPI.RespDataMA_GetMonsterMG>(base.SetResponse);
     return(requestMA_MonsterMasterOnlyGroupData);
 }
        public override RequestBase CreateRequest()
        {
            TutorialNaviMasterList tutorialNaviMasterList = new TutorialNaviMasterList();

            tutorialNaviMasterList.SetSendData = delegate(TutorialNaviMasterListQuery requestParam)
            {
                int countryCode = int.Parse(CountrySetting.GetCountryCode(CountrySetting.CountryCode.EN));
                requestParam.countryCode = countryCode;
            };
            tutorialNaviMasterList.OnReceived = new Action <TutorialNaviMasterResponse>(base.SetResponse);
            return(tutorialNaviMasterList);
        }
    private IEnumerator InitDLG(Action <int> closeEvent, float sizeX, float sizeY, float showAnimationTime)
    {
        int countryCode;

        if (int.TryParse(CountrySetting.GetCountryCode(CountrySetting.CountryCode.EN), out countryCode))
        {
            bool requestRetry;
            int  type;
            if (!this.isTutorial)
            {
                type         = 0;
                requestRetry = false;
            }
            else
            {
                type         = 1;
                requestRetry = true;
            }
            GameWebAPI.RequestGA_GashaInfo request = new GameWebAPI.RequestGA_GashaInfo
            {
                SetSendData = delegate(GameWebAPI.GA_Req_GashaInfo param)
                {
                    param.isTutorial  = type;
                    param.countryCode = countryCode;
                },
                OnReceived = delegate(GameWebAPI.RespDataGA_GetGachaInfo response)
                {
                    this.gashaInfoManager = new GashaInfoManager(response);
                }
            };
            APIRequestTask task = new APIRequestTask(request, requestRetry);
            yield return(base.StartCoroutine(task.Run(delegate
            {
                this.OnSuccessRequestGashaInfo(closeEvent, sizeX, sizeY, showAnimationTime);
            }, new Action <Exception>(this.OnFailedRequestGashaInfo), null)));
        }
        else
        {
            global::Debug.LogError("国コードの取得に失敗.");
            if (this.isTutorial)
            {
                base.SetCloseAction(delegate(int nop)
                {
                    GUIMain.BackToTOP("UIStartupCaution", 0.8f, 0.8f);
                });
            }
            else
            {
                base.ClosePanel(false);
            }
        }
        yield break;
    }
 public static void Initialize()
 {
     if (AlertMaster.alertCache == null)
     {
         AlertMaster.alertCache = new Dictionary <string, GameWebAPI.RespDataMA_MessageM.MessageM>();
     }
     if (null == AlertMaster.resourceMaster)
     {
         int    num  = int.Parse(CountrySetting.GetCountryCode(CountrySetting.CountryCode.EN));
         string path = "Master/message_m" + num;
         AlertMaster.resourceMaster = Resources.Load <AlertMasterResource>(path);
     }
 }
 public static void Initialize()
 {
     if (StringMaster.stringCache == null)
     {
         StringMaster.stringCache = new Dictionary <string, string>();
     }
     if (null == StringMaster.resourceMaster)
     {
         int    num  = int.Parse(CountrySetting.GetCountryCode(CountrySetting.CountryCode.EN));
         string path = "Master/message_string_m" + num;
         StringMaster.resourceMaster = Resources.Load <StringMasterResource>(path);
     }
 }
Exemple #8
0
 private IEnumerator checkAndSyncCountryCode()
 {
     if (!DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.countryCode.Equals(CountrySetting.GetCountryCode(CountrySetting.CountryCode.EN)))
     {
         GameWebAPI.RequestUS_RegisterLanguageInfo requestUS_RegisterLanguageInfo = new GameWebAPI.RequestUS_RegisterLanguageInfo();
         requestUS_RegisterLanguageInfo.SetSendData = delegate(GameWebAPI.US_Req_RegisterLanguageInfo param)
         {
             param.countryCode = int.Parse(CountrySetting.GetCountryCode(CountrySetting.CountryCode.EN));
         };
         GameWebAPI.RequestUS_RegisterLanguageInfo request = requestUS_RegisterLanguageInfo;
         yield return(base.StartCoroutine(request.Run(null, null, null)));
     }
     yield break;
 }
Exemple #9
0
 public void SetTitle(int mode)
 {
     if (mode != 0)
     {
         if (mode == 1)
         {
             this.title.text = StringMaster.GetString("PVP_SimulatedGame");
         }
     }
     else
     {
         this.title.text = StringMaster.GetString("PVP_NationwideBattle");
     }
     CountrySetting.ConvertTMProText(ref this.title);
 }
 public APIRequestTask RequestBannerMaster(bool requestRetry = true)
 {
     GameWebAPI.RequestMA_BannerMaster requestMA_BannerMaster = new GameWebAPI.RequestMA_BannerMaster();
     requestMA_BannerMaster.SetSendData = delegate(GameWebAPI.RequestMA_BannerM requestParam)
     {
         int countryCode = int.Parse(CountrySetting.GetCountryCode(CountrySetting.CountryCode.EN));
         requestParam.countryCode = countryCode;
     };
     requestMA_BannerMaster.OnReceived = delegate(GameWebAPI.RespDataMA_BannerM response)
     {
         this.RespData_BannerMaster = response;
     };
     GameWebAPI.RequestMA_BannerMaster request = requestMA_BannerMaster;
     return(new APIRequestTask(request, requestRetry));
 }
 public APIRequestTask RequestNews(bool requestRetry = true)
 {
     GameWebAPI.RequestIN_InfoList requestIN_InfoList = new GameWebAPI.RequestIN_InfoList();
     requestIN_InfoList.SetSendData = delegate(GameWebAPI.SendDataIN_InfoList requestParam)
     {
         int countryCode = int.Parse(CountrySetting.GetCountryCode(CountrySetting.CountryCode.EN));
         requestParam.countryCode = countryCode;
     };
     requestIN_InfoList.OnReceived = delegate(GameWebAPI.RespDataIN_InfoList response)
     {
         this.RespDataIN_InfoList = response;
     };
     GameWebAPI.RequestIN_InfoList request = requestIN_InfoList;
     return(new APIRequestTask(request, requestRetry));
 }
Exemple #12
0
 public APIRequestTask AccessEventExchangeInfoLogicAPI()
 {
     GameWebAPI.EventExchangeInfoLogic eventExchangeInfoLogic = new GameWebAPI.EventExchangeInfoLogic();
     eventExchangeInfoLogic.SetSendData = delegate(GameWebAPI.ReqDataUS_EventExchangeInfoLogic requestParam)
     {
         int countryCode = int.Parse(CountrySetting.GetCountryCode(CountrySetting.CountryCode.EN));
         requestParam.countryCode = countryCode;
     };
     eventExchangeInfoLogic.OnReceived = delegate(GameWebAPI.RespDataMS_EventExchangeInfoLogic response)
     {
         if (response.result != null && response.result.Count <GameWebAPI.RespDataMS_EventExchangeInfoLogic.Result>() > 0)
         {
             this.EventExchangeInfoList = response.result;
         }
         else
         {
             this.EventExchangeInfoList = new GameWebAPI.RespDataMS_EventExchangeInfoLogic.Result[0];
         }
     };
     GameWebAPI.EventExchangeInfoLogic request = eventExchangeInfoLogic;
     return(new APIRequestTask(request, true));
 }
 public APIRequestTask AccessMissionInfoLogicAPI()
 {
     GameWebAPI.MissionInfoLogic missionInfoLogic = new GameWebAPI.MissionInfoLogic();
     missionInfoLogic.SetSendData = delegate(GameWebAPI.SendDataMS_MissionInfoLogic requestParam)
     {
         int countryCode = int.Parse(CountrySetting.GetCountryCode(CountrySetting.CountryCode.EN));
         requestParam.countryCode = countryCode;
     };
     missionInfoLogic.OnReceived = delegate(GameWebAPI.RespDataMS_MissionInfoLogic response)
     {
         this.MissionInfoLogicData = response;
         IEnumerator enumerator = Enum.GetValues(typeof(Type.DisplayGroup)).GetEnumerator();
         try
         {
             while (enumerator.MoveNext())
             {
                 object            obj          = enumerator.Current;
                 Type.DisplayGroup displayGroup = (Type.DisplayGroup)obj;
                 GameWebAPI.RespDataMS_MissionInfoLogic.Result.Mission[] array = (GameWebAPI.RespDataMS_MissionInfoLogic.Result.Mission[]) typeof(GameWebAPI.RespDataMS_MissionInfoLogic.Result).GetField(displayGroup.ToString()).GetValue(this.MissionInfoLogicData.result);
                 foreach (GameWebAPI.RespDataMS_MissionInfoLogic.Result.Mission mission in array)
                 {
                     GameWebAPI.RespDataMS_MissionInfoLogic.Result.Mission mission2 = mission;
                     int num = (int)displayGroup;
                     mission2.displayGroup = num.ToString();
                 }
             }
         }
         finally
         {
             IDisposable disposable;
             if ((disposable = (enumerator as IDisposable)) != null)
             {
                 disposable.Dispose();
             }
         }
     };
     GameWebAPI.MissionInfoLogic request = missionInfoLogic;
     return(new APIRequestTask(request, true));
 }
Exemple #14
0
    public static string GetLocalizedPath(string path)
    {
        string countryPrefix = CountrySetting.GetCountryPrefix(CountrySetting.CountryCode.EN);

        return((!string.IsNullOrEmpty(countryPrefix)) ? string.Format("{0}/{1}", countryPrefix, path) : path);
    }
Exemple #15
0
    private void Initialize()
    {
        if (base.PartsTitle != null)
        {
            base.PartsTitle.SetTitle(StringMaster.GetString("OptionTitle"));
        }
        if (this.pushNoticeOnLabel != null)
        {
            foreach (UILabel uilabel in this.pushNoticeOnLabel)
            {
                uilabel.text = StringMaster.GetString("SystemOn");
            }
        }
        if (this.pushNoticeOffLabel != null)
        {
            foreach (UILabel uilabel2 in this.pushNoticeOffLabel)
            {
                uilabel2.text = StringMaster.GetString("SystemOff");
            }
        }
        if (base.MultiTab != null)
        {
            List <string> tabLabelTexts = new List <string>
            {
                StringMaster.GetString("OptionSetting"),
                StringMaster.GetString("OptionPushNotice")
            };
            base.MultiTab.InitMultiTab(new List <Action <int> >
            {
                new Action <int>(this.OnClickedSystemEnvironmentTab),
                new Action <int>(this.OnClickedPushNoticeTab)
            }, tabLabelTexts);
            base.MultiTab.SetOnOffColor(ConstValue.TAB_YELLOW, Color.white);
            base.MultiTab.SetFocus(1);
        }
        if (null != this.pushTitle)
        {
            this.pushTitle.text = StringMaster.GetString("Option-05");
        }
        if (null != this.eventStartTitle)
        {
            this.eventStartTitle.text = StringMaster.GetString("Option-06");
        }
        if (null != this.eventStartSubTitle)
        {
            this.eventStartSubTitle.text = StringMaster.GetString("Option-07");
        }
        if (null != this.captureUpdateTitle)
        {
            this.captureUpdateTitle.text = StringMaster.GetString("Option-08");
        }
        if (null != this.captureUpdateSubTitle)
        {
            this.captureUpdateSubTitle.text = StringMaster.GetString("Option-09");
        }
        if (null != this.facilityBuildTitle)
        {
            this.facilityBuildTitle.text = StringMaster.GetString("Option-10");
        }
        if (null != this.facilityBuildSubTitle)
        {
            this.facilityBuildSubTitle.text = StringMaster.GetString("Option-11");
        }
        if (null != this.staminaMaxTitle)
        {
            this.staminaMaxTitle.text = StringMaster.GetString("Option-12");
        }
        if (null != this.staminaMaxSubTitle)
        {
            this.staminaMaxSubTitle.text = StringMaster.GetString("Option-13");
        }
        if (null != this.gardenEvolutionTitle)
        {
            this.gardenEvolutionTitle.text = StringMaster.GetString("Option-14");
        }
        if (null != this.gardenEvolutionSubTitle)
        {
            this.gardenEvolutionSubTitle.text = StringMaster.GetString("Option-15");
        }
        this.CopyOptionList(OptionSetting.Instance.OptionList, this.editOptionList);
        if (this.editOptionList != null)
        {
            this.SetupController();
        }
        bool flag = PlayerPrefs.GetInt("BattleAuto", 0) == 0;

        if (this.autoButtonOnSprite != null)
        {
            this.autoButtonOnSprite.spriteName = ((!flag) ? "Common02_Btn_SupportWhite" : "Common02_Btn_SupportRed");
        }
        if (this.autoButtonOffSprite != null)
        {
            this.autoButtonOffSprite.spriteName = ((!flag) ? "Common02_Btn_SupportRed" : "Common02_Btn_SupportWhite");
        }
        this.autoBattleState     = PlayerPrefs.GetInt("BattleAuto", 0);
        this.initAutoBattleState = PlayerPrefs.GetInt("BattleAuto", 0);
        if (this.autoButtonOnLabel != null)
        {
            this.autoButtonOnLabel.color = ((!flag) ? Color.gray : Color.white);
        }
        if (this.autoButtonOffLabel != null)
        {
            this.autoButtonOffLabel.color = ((!flag) ? Color.white : Color.gray);
        }
        this.ChangeTab(this.currentTab);
        if (this.goLanguageSettings != null)
        {
            if (CountrySetting.GetCountryCode(CountrySetting.CountryCode.EN) != 1.ToString())
            {
                this.currentLanguageSetting.text = StringMaster.GetString(string.Format("OptionLanguage_{0}", CountrySetting.GetCountryCode(CountrySetting.CountryCode.EN)));
                this.goLanguageSettings.SetActive(true);
            }
            else
            {
                this.widgetWindow.height -= 80;
                this.goLanguageSettings.SetActive(false);
            }
        }
        this.isInitialized = true;
    }
Exemple #16
0
    public static string GetCountryPrefix(CountrySetting.CountryCode defaultCountryCode = CountrySetting.CountryCode.EN)
    {
        string countryCode = CountrySetting.GetCountryCode(defaultCountryCode);

        return(CountrySetting.CountryPrefix[int.Parse(countryCode)]);
    }
Exemple #17
0
 public static bool IsReloadRequired(string countryCode)
 {
     return(string.IsNullOrEmpty(PlayerPrefs.GetString("PlayerCountryCode")) || !countryCode.Equals(CountrySetting.GetCountryCode(CountrySetting.CountryCode.EN)));
 }