Beispiel #1
0
        public void SetFocusedValueToCTX(FlowEvent.Data data)
        {
            var bandwidthDwProfile = sceneManager.system.bandwidthDwProfile;
            var delayProfile       = sceneManager.system.delayProfile;

            foreach (var field in m_fields)
            {
                switch (field.key)
                {
                case "BandwidthTestDuration":
                    bandwidthDwProfile.duration = field.focusedValue.num;
                    break;

                case "BandwidthDataSize":
                    bandwidthDwProfile.datSize = field.focusedValue.str;
                    break;

                case "DelayTestDuration":
                    delayProfile.duration = field.focusedValue.num;
                    break;

                case "DelayTestPps":
                    delayProfile.pps = field.focusedValue.num;
                    break;

                case "DelayTestPktSize":
                    delayProfile.pktPayloadSize = field.focusedValue.num - (int)UDPingClient.HEADER_SIZE;
                    break;
                }
            }
        }
Beispiel #2
0
 public void DelayTest(FlowEvent.Data data)
 {
     if (m_client != null)
     {
         data.task = m_client.UDPing();
     }
 }
Beispiel #3
0
 public void ErrorQuit(FlowEvent.Data data)
 {
     dialog.SetTitle("通信エラー");
     dialog.SetMsg("アプリを終了します");
     dialog.SetModeOk(() => {
         flowNode.RecieveTriggerHandler(m_errorTriggerKey);
     }, "終了");
 }
Beispiel #4
0
 public void Login(FlowEvent.Data data)
 {
     m_resetGuidBt.SetActive(false);
     data.task = sceneManager.system.userManagerHelper.Login();
     dialog.SetTitle("Login");
     dialog.SetMsg("NowLoading...");
     dialog.SetLoading(true);
 }
Beispiel #5
0
 public void WaitLoginAction(FlowEvent.Data data)
 {
     m_resetGuidBt.SetActive(true);
     dialog.SetLoading(false);
     dialog.SetTitle("Get Ready !");
     dialog.SetMsg("Please Press Login Button !");
     dialog.SetModeOk(() => {
         flowNode.RecieveTriggerHandler(m_loginTriggerKey);
     }, "LOGIN");
 }
Beispiel #6
0
 public void CopyProfile(FlowEvent.Data data)
 {
     if (m_downloadClient != null)
     {
         if (m_downloadClient.profile.status == BandwidthClient.Status.E_OK)
         {
             sceneManager.system.bandwidthDwProfile = m_downloadClient.profile;
         }
     }
 }
Beispiel #7
0
 public void CopyProfile(FlowEvent.Data data)
 {
     if (m_client != null)
     {
         if (m_client.profile.status == UDPingClient.Status.E_OK)
         {
             sceneManager.system.delayProfile = m_client.profile;
         }
     }
 }
Beispiel #8
0
 public void LoadInfo(FlowEvent.Data data)
 {
     if (sceneManager.system.staticConfig.currentSetting.apiUrl == "")
     {
         dialog.SetTitle("Build Error Detect");
         dialog.SetMsg("InfoAPI URL is NULL !!");
         dialog.SetLoading(false);
     }
     else
     {
         data.task = sceneManager.system.staticConfig.Invoke();
         dialog.SetTitle("Check AppInfo");
         dialog.SetMsg("NowLoading...");
         dialog.SetLoading(true);
     }
 }
Beispiel #9
0
        public void LoadInfoCheck(FlowEvent.Data data)
        {
            if (sceneManager.system.staticConfig.isSuccess)
            {
                flowNode.BreakLoop(m_loadInfoLoopTriggerKey);
                var apiInfo = sceneManager.system.staticConfig.apiInfo;
                foreach (var api in apiInfo.list)
                {
                    Debug.Log(api.name + " > " + api.url);
                }
                Debug.Log("ApiKey > " + apiInfo.key);

                // 各種APIClientにStaticConfigをセットして回る
                sceneManager.system.userManager.config = sceneManager.system.staticConfig;
            }
            else
            {
                Debug.Log("Loadinfo Fail. >> Retry.");
            }
        }
Beispiel #10
0
 public void LoginCheck(FlowEvent.Data data)
 {
     dialog.SetLoading(false);
     if (sceneManager.system.userManager.errno == AuthError.E_OK)
     {
         sceneManager.system.userManagerHelper.SaveProfile
         (
             sceneManager.system.userManager.userProfile.guid,
             sceneManager.system.userManager.userProfile.uid,
             sceneManager.system.userManager.userProfile.name,
             sceneManager.system.userManager.sessCode
         );
         dialog.SetMsg("認証完了");
     }
     else
     {
         flowNode.nextFlowAfterAbort = "ErrorDialog";
         flowNode.RecieveAbortHandler();
     }
 }
Beispiel #11
0
 public void UnlockUI(FlowEvent.Data data)
 {
     uiLock.UnLock();
 }
Beispiel #12
0
 public void SetDialogOkBtLabel(FlowEvent.Data data)
 {
     dialog.SetOkBtLabel(data.str);
 }
Beispiel #13
0
 public void SetDialogMsg(FlowEvent.Data data)
 {
     dialog.SetMsg(data.str);
 }
Beispiel #14
0
 public void SetDialogTitle(FlowEvent.Data data)
 {
     dialog.SetTitle(data.str);
 }
Beispiel #15
0
 public void LoadItemMaster(FlowEvent.Data data)
 {
     //data.task = sceneManager.system.userManagerHelper.Login();
 }
Beispiel #16
0
 public void StartBandwidthUpTest(FlowEvent.Data data)
 {
     data.task = BandWidthUpTest();
 }