Ejemplo n.º 1
0
    // Token: 0x06000472 RID: 1138 RVA: 0x0001FA04 File Offset: 0x0001DE04
    public void TimerAdd(EventTimerFormat addEvt)
    {
        EventTimerFormat eventTimerFormat = new EventTimerFormat(addEvt);

        if (eventTimerFormat.timeSpanSec < 0)
        {
            this.ActiveAdd(eventTimerFormat);
        }
        else
        {
            int num = 0;
            while (this.search_TimerEvtIndex_forId(num) != -1)
            {
                num++;
            }
            eventTimerFormat.id      = num;
            eventTimerFormat.addTime = SuperGameMaster.GetLastDateTime().AddSeconds((double)eventTimerFormat.timeSpanSec);
            SuperGameMaster.saveData.evtList_timer.Add(new EventTimerFormat(eventTimerFormat));
            SuperGameMaster.saveData.evtList_timer.Sort((EventTimerFormat x, EventTimerFormat y) => x.timeSpanSec - y.timeSpanSec);
            object[] array = new object[8];
            array[0] = "[EventTimerManager] Timer イベントを追加: id = ";
            array[1] = eventTimerFormat.id;
            array[2] = " / timeSpan = ";
            array[3] = eventTimerFormat.timeSpanSec;
            array[4] = " || evtType = ";
            int             num2    = 5;
            TimerEvent.Type evtType = eventTimerFormat.evtType;
            array[num2] = evtType.ToString();
            array[6]    = " / evtId = ";
            array[7]    = eventTimerFormat.evtId;
            Debug.Log(string.Concat(array));
        }
    }
Ejemplo n.º 2
0
 // Token: 0x0600063F RID: 1599 RVA: 0x00024BE8 File Offset: 0x00022FE8
 public IEnumerator Proc()
 {
     this.evtId   = -1;
     this.picDate = new DateTime(1970, 1, 1);
     if (SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.Picture) != -1)
     {
         bool cng = false;
         using (List <EventTimerFormat> .Enumerator enumerator = SuperGameMaster.evtMgr.get_ActEvtList_forType(TimerEvent.Type.Picture).GetEnumerator())
         {
             while (enumerator.MoveNext())
             {
                 EventTimerFormat evt = enumerator.Current;
                 int setId            = evt.evtId;
                 int charaId          = evt.evtValue[0];
                 if (SuperGameMaster.saveData.tmpPictureId.FindIndex((int rec) => rec.Equals(evt.id)) != -1)
                 {
                     SuperGameMaster.LoadingProgress += 2f;
                     if (SuperGameMaster.LoadingProgress > 100f)
                     {
                         SuperGameMaster.LoadingProgress = 100f;
                     }
                 }
                 else
                 {
                     Texture2D tex     = SuperGameMaster.picture.Create(setId, charaId);
                     byte[]    pngData = tex.EncodeToPNG();
                     SuperGameMaster.saveData.tmpPictureId.Add(evt.id);
                     SuperGameMaster.saveData.tmpPicture.Add(pngData);
                     SuperGameMaster.saveMgr.Save_Picture(SuperGameMaster.saveData, SaveType.Temp, SuperGameMaster.saveData.tmpPicture.Count - 1);
                     cng = true;
                     SuperGameMaster.LoadingProgress += 2f;
                     if (SuperGameMaster.LoadingProgress > 100f)
                     {
                         SuperGameMaster.LoadingProgress = 100f;
                     }
                     yield return(null);
                 }
             }
         }
         if (cng)
         {
             SuperGameMaster.SaveData();
         }
     }
     else
     {
         if (SuperGameMaster.saveData.tmpPicture.Count > 0)
         {
             SuperGameMaster.saveData.tmpPicture = new List <byte[]>();
             Debug.Log("[PictureCreator] tmpPicture に余分なデータが含まれてたため、削除しました");
         }
         if (SuperGameMaster.saveData.tmpPictureId.Count > 0)
         {
             SuperGameMaster.saveData.tmpPictureId = new List <int>();
             Debug.Log("[PictureCreator] tmpPictureId に余分なデータが含まれてたため、削除しました");
         }
     }
     yield break;
 }
Ejemplo n.º 3
0
 // Token: 0x0600040A RID: 1034 RVA: 0x0001B57C File Offset: 0x0001997C
 public EventTimerFormat(EventTimerFormat original)
 {
     this.id          = original.id;
     this.timeSpanSec = original.timeSpanSec;
     this.activeTime  = original.activeTime;
     this.evtType     = original.evtType;
     this.evtId       = original.evtId;
     this.evtValue    = new List <int>(original.evtValue);
     this.addTime     = new DateTime(original.addTime.Year, original.addTime.Month, original.addTime.Day, original.addTime.Hour, original.addTime.Minute, original.addTime.Second, original.addTime.Millisecond);
     this.trigger     = original.trigger;
 }
Ejemplo n.º 4
0
    // Token: 0x06000261 RID: 609 RVA: 0x00007C98 File Offset: 0x00006098
    public void getHitChara(int charaId)
    {
        this.focusCharaId = charaId;
        int index = this.RefChara.FindIndex((GameObject rec) => rec.GetComponent <CharaObject>().charaId.Equals(this.focusCharaId));
        EventTimerFormat eventTimerFormat = SuperGameMaster.evtMgr.get_ActEvt_forId(this.RefActEvtId[index]);

        if (eventTimerFormat.evtValue[1] == 1)
        {
            this.ConfilmUI.GetComponentInParent <UIMaster>().freezeObject(true);
            this.ConfilmUI.GetComponentInParent <UIMaster>().blockUI(false, new Color(0.3f, 0.3f, 0.3f, 0f));
            ConfilmPanel        confilm             = this.ConfilmUI.GetComponent <ConfilmPanel>();
            int                 num                 = SuperGameMaster.sDataBase.get_CharaDB_rowItemId_index(eventTimerFormat.evtValue[2]);
            CharacterDataFormat characterDataFormat = SuperGameMaster.sDataBase.get_CharaDB_forId(charaId);
            float               num2                = 100f + (float)characterDataFormat.taste[num];
            if (num2 >= 180f)
            {
                confilm.OpenPanel(characterDataFormat.name + "は\n喜んでいます");
            }
            else if (num2 >= 160f)
            {
                confilm.OpenPanel(characterDataFormat.name + "は\n嬉しそうです");
            }
            else if (num2 >= 120f)
            {
                confilm.OpenPanel(characterDataFormat.name + "は\nお腹がいっぱいです");
            }
            else
            {
                confilm.OpenPanel(characterDataFormat.name + "は\nもう食べられません");
            }
            confilm.ResetOnClick_Screen();
            confilm.SetOnClick_Screen(delegate
            {
                confilm.ClosePanel();
            });
            confilm.SetOnClick_Screen(delegate
            {
                this.ConfilmUI.GetComponentInParent <UIMaster>().freezeObject(false);
            });
            confilm.SetOnClick_Screen(delegate
            {
                this.ConfilmUI.GetComponentInParent <UIMaster>().blockUI(false, new Color(0f, 0f, 0f, 0f));
            });
            this.ResetFocus();
            return;
        }
        this.ItemView.GetComponent <ItemScrollView>().OpenScrollView(base.gameObject, ItemScrollView.Mode.Present, this.focusCharaId);
    }
Ejemplo n.º 5
0
 // Token: 0x06000389 RID: 905 RVA: 0x00014ED8 File Offset: 0x000132D8
 public bool FriendComeCheck()
 {
     if (this.MODE != ResultPanel.ResultMode.Friend)
     {
         int num = SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.Friend);
         if (num != -1)
         {
             EventTimerFormat eventTimerFormat = SuperGameMaster.evtMgr.get_ActEvt(num);
             if (eventTimerFormat.evtValue[5] == 0)
             {
                 return(true);
             }
         }
     }
     return(false);
 }
Ejemplo n.º 6
0
    // Token: 0x06000756 RID: 1878 RVA: 0x00033028 File Offset: 0x00031428
    public void FinishTutorial()
    {
        this.tutorialStep = Step.Complete;
        SuperGameMaster.SetTutorialStep(this.tutorialStep);
        MailScrollView component = this.UI.GetComponent <UIMaster_MainOut>().MailUI.GetComponent <MailScrollView>();

        component.CreateMailEvt(SuperGameMaster.sDataBase.get_MailEvtDB(0));
        component.CreateMailEvt(SuperGameMaster.sDataBase.get_MailEvtDB(1));
        component.PostObj.GetComponent <Post>().DispNew(true);
        this.Obj.GetComponent <ObjectMaster_MainOut>().Table.GetComponent <CharaTable>().CheckFriendCreate();
        int index = SuperGameMaster.evtMgr.search_TimerEvtIndex_forType(TimerEvent.Type.BackHome);
        EventTimerFormat eventTimerFormat = SuperGameMaster.evtMgr.get_TimerEvt(index);
        int num = eventTimerFormat.evtValue[1];

        num += (int)SuperGameMaster.getGameTimer();
        SuperGameMaster.evtMgr.SetTime_TimerEvt(TimerEvent.Type.BackHome, num, -1);
        SuperGameMaster.evtMgr.SetTime_TimerEvt(TimerEvent.Type.Picture, num, -1);
        SuperGameMaster.SetLastTravelTime(num);
        SuperGameMaster.SaveData();
    }
Ejemplo n.º 7
0
    // Token: 0x06000754 RID: 1876 RVA: 0x00031A3C File Offset: 0x0002FE3C
    public void UpdateTutorial()
    {
        if (this.TutorialComplete())
        {
            return;
        }
        if (this.SetScene == Scenes.NONE)
        {
            return;
        }
        Scenes setScene = this.SetScene;

        if (setScene != Scenes.MainOut)
        {
            if (setScene != Scenes.MainIn)
            {
                if (setScene == Scenes.Shop)
                {
                    UIMaster_Shop UI_Cmp = this.UI.GetComponent <UIMaster_Shop>();
                    switch (this.tutorialStep)
                    {
                    case Step.d1_SH_BuyItem:
                    {
                        int selectShopIndex = UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().GetSelectShopIndex();
                        if (selectShopIndex != -1 && !UI_Cmp.HelpUI.activeSelf && selectShopIndex != 0)
                        {
                            UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().unsetCursor();
                            UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().ResetSelectShopIndex();
                            UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().SetInfoPanelData(-1, Vector3.zero);
                            UI_Cmp.DisplayPanel.GetComponent <FlickCheaker>().stopFlick(true);
                            UI_Cmp.blockUI(true, new Color(0f, 0f, 0f, 0f));
                            HelpPanel help = UI_Cmp.HelpUI.GetComponent <HelpPanel>();
                            help.OpenPanel("はじめにお手頃な\n「えびづるのスコーン」を\n買ってみましょう");
                            help.ResetOnClick_Screen();
                            help.SetOnClick_Screen(delegate
                                {
                                    help.ClosePanel();
                                });
                            help.SetOnClick_Screen(delegate
                                {
                                    UI_Cmp.blockUI(false);
                                });
                            help.SetOnClick_Screen(delegate
                                {
                                    UI_Cmp.DisplayPanel.GetComponent <FlickCheaker>().stopFlick(false);
                                });
                        }
                        if (!UI_Cmp.BackFunc_GetStopFlag())
                        {
                            UI_Cmp.BackFunc_Stop(true);
                        }
                        if (SuperGameMaster.FindItemStock(0) >= 1)
                        {
                            this.StepTutorial(true);
                        }
                        break;
                    }

                    case Step.d2_SH_GoHome:
                    {
                        int selectShopIndex2 = UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().GetSelectShopIndex();
                        if (selectShopIndex2 != -1 && !UI_Cmp.HelpUI.activeSelf)
                        {
                            UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().unsetCursor();
                            UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().ResetSelectShopIndex();
                            UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().SetInfoPanelData(-1, Vector3.zero);
                        }
                        break;
                    }
                    }
                }
            }
            else
            {
                UIMaster_MainIn     component  = this.UI.GetComponent <UIMaster_MainIn>();
                ObjectMaster_MainIn component2 = this.Obj.GetComponent <ObjectMaster_MainIn>();
                if (component2.Frog.activeSelf)
                {
                    component2.Frog.SetActive(false);
                }
                if (component.BagDeskUI.GetComponent <BagDeskPanels>().EmptyIcon.activeSelf)
                {
                    component.BagDeskUI.GetComponent <BagDeskPanels>().EmptyIcon.SetActive(false);
                }
                Step step = this.tutorialStep;
                if (step != Step.e0_MI_OpenBag)
                {
                    if (step != Step.e1_MI_ReStart)
                    {
                        if (step == Step.b0_MI_GoOut)
                        {
                            this.seTime += Time.deltaTime;
                            if (this.seTime > 2f && this.seTime - Time.deltaTime < 2f)
                            {
                                HelpPanel component3 = component.HelpUI.GetComponent <HelpPanel>();
                                if (!component3.HelpWindow.activeSelf)
                                {
                                    component3.ClosePanel();
                                    component3.ActionStock_Next();
                                }
                            }
                        }
                    }
                }
                else
                {
                    if (component2.Frog.activeSelf)
                    {
                        component2.Frog.SetActive(false);
                    }
                    if (component.BagDeskUI.activeSelf)
                    {
                        component.BagDeskUI.GetComponent <FlickCheaker>().stopFlick(true);
                        if (!component.BagDeskUI.GetComponent <BagDeskPanels>().BagPanelUI.GetComponent <BagPanel>().ItemView.activeSelf)
                        {
                            if (!SuperGameMaster.GetStandby())
                            {
                                List <int> tmpListAll = component.BagDeskUI.GetComponent <BagDeskPanels>().Get_tmpListAll();
                                if (tmpListAll[0] == 0 && tmpListAll[1] == 1000)
                                {
                                    component.BagCompleteCursor.GetComponentInChildren <Image>().enabled = true;
                                }
                                else
                                {
                                    component.BagCompleteCursor.GetComponentInChildren <Image>().enabled = false;
                                }
                            }
                            else
                            {
                                component.BagCompleteCursor.GetComponentInChildren <Image>().enabled = false;
                            }
                        }
                        else
                        {
                            component.BagCompleteCursor.GetComponentInChildren <Image>().enabled = false;
                        }
                    }
                    else if (!component.BagMarkUI.activeSelf && !component.HelpUI.activeSelf)
                    {
                        component.BagCompleteCursor.GetComponentInChildren <Image>().enabled = false;
                        List <int> bagList = SuperGameMaster.GetBagList();
                        if (bagList[0] == 0 && bagList[1] == 1000 && SuperGameMaster.GetStandby())
                        {
                            SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.GoTravel);
                            SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.BackHome);
                            SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.Picture);
                            SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.Drift);
                            SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.Return);
                            SuperGameMaster.travel.GoTravel(536870911, 1);
                            int index = SuperGameMaster.evtMgr.search_TimerEvtIndex_forType(TimerEvent.Type.BackHome);
                            EventTimerFormat eventTimerFormat = SuperGameMaster.evtMgr.get_TimerEvt(index);
                            List <int>       list             = new List <int>(eventTimerFormat.evtValue);
                            if (list.Count >= 6 && list[4] >= 10000)
                            {
                                list[4] = 3009;
                            }
                            SuperGameMaster.evtMgr.set_TimerEvt_forId(eventTimerFormat.id, list);
                            SuperGameMaster.evtMgr.SetTime_TimerEvt(TimerEvent.Type.GoTravel, 0, 536870911);
                            SuperGameMaster.SetStandby(true);
                            SuperGameMaster.SetLastTravelTime(536870911);
                            SuperGameMaster.SetStandbyWait(0);
                            component.BagCompleteCursor.SetActive(false);
                            this.StepTutorial(true);
                        }
                        else
                        {
                            SuperGameMaster.saveData.lastTravelTime = SuperGameMaster.saveData.restTime;
                            SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.GoTravel);
                            SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.BackHome);
                            SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.Picture);
                            SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.Drift);
                            SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.Return);
                            component.blockUI(false);
                            component.TutorialUBlock();
                            component.BagMarkUI.SetActive(true);
                        }
                    }
                }
            }
        }
        else
        {
            UIMaster_MainOut     UI_Cmp     = this.UI.GetComponent <UIMaster_MainOut>();
            ObjectMaster_MainOut component4 = this.Obj.GetComponent <ObjectMaster_MainOut>();
            Step step2 = this.tutorialStep;
            switch (step2 + 1)
            {
            case Step.a0_MO_FrogTap:
                this.seTime += Time.deltaTime;
                if (this.seTime % 5f < (this.seTime - Time.deltaTime) % 5f || this.seTime - Time.deltaTime == 0f)
                {
                    SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Sparrow"]);
                }
                if (Input.GetKeyDown(KeyCode.Escape) && !UI_Cmp.ConfilmUI.activeSelf)
                {
                    if (!UI_Cmp.Title_StartUI.activeSelf)
                    {
                        if (UI_Cmp.WebViewUI.activeSelf)
                        {
                            UI_Cmp.WebViewUI.GetComponent <WebViewPanel>().ClosePanel();
                        }
                        else
                        {
                            UI_Cmp.Title_StartUI.SetActive(true);
                            UI_Cmp.Title_PolicyUI.SetActive(false);
                        }
                        SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Cancel"]);
                    }
                    else
                    {
                        ConfilmPanel confilm = UI_Cmp.ConfilmUI.GetComponent <ConfilmPanel>();
                        confilm.OpenPanel_YesNo("アプリケーションを終了しますか?");
                        confilm.ResetOnClick_Yes();
                        confilm.SetOnClick_Yes(delegate
                        {
                            confilm.ClosePanel();
                        });
                        confilm.SetOnClick_Yes(delegate
                        {
                            SuperGameMaster.SaveData();
                        });
                        confilm.SetOnClick_Yes(delegate
                        {
                            Application.Quit();
                        });
                        confilm.ResetOnClick_No();
                        confilm.SetOnClick_No(delegate
                        {
                            confilm.ClosePanel();
                        });
                    }
                }
                break;

            case Step.a1_MO_FrogName:
                this.seTime += Time.deltaTime;
                if (this.seTime > 0f && this.seTime - Time.deltaTime < 0f)
                {
                    this.seTime = 0f;
                }
                this.seTime2 += Time.deltaTime;
                if (this.seTime2 > 4f)
                {
                    component4.Call_FlickMove(new Vector2(Mathf.Clamp((1.92f - Camera.main.transform.localPosition.x) / 60f, 1E-05f, 0.1f), 0f));
                }
                if (this.seTime2 > 7f)
                {
                    if (Input.GetMouseButtonDown(0))
                    {
                        Vector2 point = Camera.main.ScreenToWorldPoint(Input.mousePosition);
                        if (component4.Frog.GetComponent <Collider2D>().OverlapPoint(point))
                        {
                            this.StepTutorial(false);
                            UI_Cmp.FrogCursorUI.SetActive(false);
                        }
                    }
                    else if (this.seTime2 > 9f)
                    {
                        this.StepTutorial(false);
                        UI_Cmp.FrogCursorUI.SetActive(false);
                    }
                }
                if (this.seTime2 >= 2f && this.seTime2 - Time.deltaTime < 2f)
                {
                    SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Grassy"]);
                }
                if (this.seTime2 % 3f < (this.seTime2 - Time.deltaTime) % 3f && this.seTime2 > 7f)
                {
                    SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Frog"]);
                }
                if (this.seTime % 5f < (this.seTime - Time.deltaTime) % 5f || this.seTime - Time.deltaTime == 0f)
                {
                    SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Sparrow"]);
                }
                break;

            case Step.a2_MO_GoHome:
                if (this.seTime != 0f)
                {
                    this.seTime += Time.deltaTime;
                    UI_Cmp.blockUI(true, new Color(0f, 0f, 0f, this.seTime));
                    if (this.seTime > 1f)
                    {
                        UI_Cmp.blockUI(true, new Color(0f, 0f, 0f, 1f));
                        this.seTime = 0f;
                        UI_Cmp.FrogNameUI.GetComponent <FrogNamePanel>().OpenNamePanel();
                        component4.Frog.SetActive(false);
                    }
                }
                break;

            case Step.b0_MI_GoOut:
                this.seTime += Time.deltaTime;
                if (this.seTime >= 0.5f && this.seTime - Time.deltaTime < 0.5f)
                {
                    SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Frog"]);
                }
                if (this.seTime <= 1f)
                {
                    UI_Cmp.blockUI(true, new Color(0f, 0f, 0f, 1f - this.seTime));
                }
                if (this.seTime > 1f && this.seTime - Time.deltaTime < 1f)
                {
                    UI_Cmp.blockUI(true, new Color(0f, 0f, 0f, 0f));
                    HelpPanel help = UI_Cmp.HelpUI.GetComponent <HelpPanel>();
                    help.OpenPanel(string.Empty);
                    help.ResetOnClick_Screen();
                    help.SetOnClick_Screen(delegate
                    {
                        help.ClosePanel();
                    });
                    help.SetOnClick_Screen(delegate
                    {
                        help.ActionStock_Next();
                    });
                    help.ActionStock_New("おうちのなかに入っていきました\nなかをのぞいてみましょう");
                    help.ActionStock_Add(delegate
                    {
                        help.ClosePanel();
                    });
                    help.ActionStock_Add(delegate
                    {
                        UI_Cmp.blockUI(false);
                    });
                    help.ActionStock_Add(delegate
                    {
                        UI_Cmp.TutorialUBlock();
                    });
                    help.ActionStock_Add(delegate
                    {
                        UI_Cmp.MoveCursorUI.SetActive(true);
                    });
                    help.ActionStock_Add(delegate
                    {
                        UI_Cmp.MoveUI.GetComponent <MovePanel>().InBtn.GetComponent <Button>().onClick.AddListener(delegate
                        {
                            this.StepTutorial(true);
                        });
                    });
                    help.ActionStock_Add(delegate
                    {
                        UI_Cmp.MoveUI.GetComponent <MovePanel>().InBtn.GetComponent <Button>().onClick.AddListener(delegate
                        {
                            UI_Cmp.MoveUI.GetComponent <MovePanel>().InBtn.GetComponent <Button>().enabled = true;
                        });
                    });
                    help.ActionStock_Add(delegate
                    {
                        UI_Cmp.MoveUI.GetComponent <MovePanel>().InBtn.GetComponent <Button>().onClick.AddListener(delegate
                        {
                            SuperGameMaster.audioMgr.StopSE();
                        });
                    });
                    help.ActionStock_Add(delegate
                    {
                        UI_Cmp.MoveUI.GetComponent <MovePanel>().InBtn.GetComponent <Button>().onClick.AddListener(delegate
                        {
                            SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Knock"]);
                        });
                    });
                    help.ActionStock_Add(delegate
                    {
                        UI_Cmp.MoveUI.GetComponent <MovePanel>().InBtn.GetComponent <Button>().onClick.AddListener(delegate
                        {
                            this.seTime = 0f;
                        });
                    });
                }
                if (this.seTime > 3f && this.seTime - Time.deltaTime < 3f)
                {
                    HelpPanel component5 = UI_Cmp.HelpUI.GetComponent <HelpPanel>();
                    if (!component5.HelpWindow.activeSelf)
                    {
                        component5.ClosePanel();
                        component5.ActionStock_Next();
                    }
                }
                break;

            case Step.c0_MO_GetStandby:
                if (this.seTime == 0f)
                {
                    UI_Cmp.setFadeOut(99999f);
                    UI_Cmp.FadeUI.GetComponent <Image>().color = new Color(0f, 0f, 0f, 0f);
                }
                this.seTime += Time.deltaTime;
                if (this.seTime >= 1f && this.seTime - Time.deltaTime < 1f)
                {
                    UI_Cmp.setFadeOut(0.25f);
                    SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Move"]);
                }
                break;

            case Step.c1_MO_GetClover:
                if (!UI_Cmp.HelpUI.activeSelf)
                {
                    if (Input.GetMouseButtonUp(0))
                    {
                        component4.Call_FlickInit();
                    }
                    this.Obj.GetComponent <FlickCheaker>().FlickUpdate();
                    component4.Call_FlickMove();
                }
                if (Camera.main.transform.position.x <= -1.9f && UI_Cmp.CloverCursorUI.activeSelf)
                {
                    UI_Cmp.CloverCursorUI.SetActive(false);
                    HelpPanel help = UI_Cmp.HelpUI.GetComponent <HelpPanel>();
                    help.OpenPanel("スライド操作でみつ葉のクローバーを\n収穫しましょう");
                    help.ResetOnClick_Screen();
                    help.SetOnClick_Screen(delegate
                    {
                        help.ClosePanel();
                    });
                    help.SetOnClick_Screen(delegate
                    {
                        this.StepTutorial(false);
                    });
                }
                break;

            case Step.c2_MO_GoShop:
                if (Input.GetMouseButton(0))
                {
                    if (Camera.main.transform.position.x > 0f)
                    {
                        UI_Cmp.CloverCursorUI.GetComponentInChildren <Image>().enabled = true;
                    }
                    else
                    {
                        UI_Cmp.CloverCursorUI.GetComponentInChildren <Image>().enabled = false;
                    }
                }
                if (!UI_Cmp.HelpUI.activeSelf && !UI_Cmp.ConfilmUI.activeSelf)
                {
                    component4.ScrollAndCloverCheck();
                    component4.CloverFarm.GetComponent <CloverFarm>().CloverProc();
                    if (SuperGameMaster.GetFirstFlag(Flag.TUTORIAL_CLOVER) && SuperGameMaster.GetFirstFlag(Flag.TUTORIAL_FOURLEAF) && SuperGameMaster.FindItemStock(1000) + SuperGameMaster.CloverPointStock() >= SuperGameMaster.GetCloverList().Count)
                    {
                        if (SuperGameMaster.FindItemStock(1000) > 10)
                        {
                            SuperGameMaster.getCloverPoint(10);
                        }
                        this.StepTutorial(true);
                    }
                }
                if (!UI_Cmp.HelpUI.activeSelf && !UI_Cmp.ConfilmUI.activeSelf && !SuperGameMaster.GetFirstFlag(Flag.TUTORIAL_CLOVER) && SuperGameMaster.CloverPointStock() >= 1)
                {
                    UI_Cmp.CloverMarkUI.SetActive(true);
                    HelpPanel help = UI_Cmp.HelpUI.GetComponent <HelpPanel>();
                    help.OpenPanel("収穫したみつ葉のクローバーは\nこちらで確認することができます");
                    help.ResetOnClick_Screen();
                    help.SetOnClick_Screen(delegate
                    {
                        help.ClosePanel();
                    });
                    help.SetOnClick_Screen(delegate
                    {
                        UI_Cmp.CloverMarkUI.SetActive(false);
                    });
                    help.SetOnClick_Screen(delegate
                    {
                        help.ActionStock_Next();
                    });
                    help.ActionStock_New("畑のクローバーを全て収穫しましょう");
                    help.ActionStock_Add(delegate
                    {
                        help.ClosePanel();
                    });
                    SuperGameMaster.SetFirstFlag(Flag.TUTORIAL_CLOVER);
                }
                if (!UI_Cmp.HelpUI.activeSelf && !UI_Cmp.ConfilmUI.activeSelf && !SuperGameMaster.GetFirstFlag(Flag.TUTORIAL_FOURLEAF) && SuperGameMaster.FindItemStock(1000) >= 1)
                {
                    ConfilmPanel confilm = UI_Cmp.ConfilmUI.GetComponent <ConfilmPanel>();
                    confilm.OpenPanel(string.Empty);
                    confilm.AddContents(UnityEngine.Object.Instantiate <GameObject>(component4.CloverFarm.GetComponent <CloverFarm>().AddConfirm_pref));
                    confilm.ResetOnClick_Screen();
                    confilm.SetOnClick_Screen(delegate
                    {
                        confilm.ClosePanel();
                    });
                    confilm.SetOnClick_Screen(delegate
                    {
                        UI_Cmp.BackFunc_Stop(true);
                    });
                    SuperGameMaster.SetFirstFlag(Flag.TUTORIAL_FOURLEAF);
                }
                break;

            case Step._StepMax:
                if (!UI_Cmp.ResultUI.activeSelf && !UI_Cmp.HelpUI.activeSelf && !UI_Cmp.ConfilmUI.activeSelf && !SuperGameMaster.tutorial.TutorialComplete())
                {
                    HelpPanel    help    = UI_Cmp.HelpUI.GetComponent <HelpPanel>();
                    ConfilmPanel confilm = UI_Cmp.ConfilmUI.GetComponent <ConfilmPanel>();
                    help.OpenPanel(string.Concat(new string[]
                    {
                        string.Empty,
                        SuperGameMaster.GetFrogName(),
                        "は旅立ちました\n",
                        SuperGameMaster.GetFrogName(),
                        "が帰ってくるには\nしばらく時間がかかります\n今回のしたくなら数時間ほどで\n帰ってきそうです"
                    }));
                    help.ResetOnClick_Screen();
                    help.SetOnClick_Screen(delegate
                    {
                        help.ClosePanel();
                    });
                    help.SetOnClick_Screen(delegate
                    {
                        help.ActionStock_Next();
                    });
                    help.ActionStock_New("※ヘルプで通知をONに設定しておくと\n" + SuperGameMaster.GetFrogName() + "が帰ってきたときに\n通知が入ります");
                    help.ActionStock_Add(delegate
                    {
                        help.ClosePanel();
                    });
                    help.ActionStock_Add(delegate
                    {
                        help.ActionStock_Next();
                    });
                    help.ActionStock_New(SuperGameMaster.GetFrogName() + "は旅のしたくがなくても\n自由にでかけていきますが\n今回のように旅のしたくを\n手伝ってあげていると\n旅の様子をうつした<color=#61a8c7><b>写真</b></color>や\n手に入れた各地の<color=#61a8c7><b>おみやげ</b></color>を\nプレゼントしてくれます");
                    help.ActionStock_Add(delegate
                    {
                        help.ClosePanel();
                    });
                    help.ActionStock_Add(delegate
                    {
                        help.ActionStock_Next();
                    });
                    help.ActionStock_New(SuperGameMaster.GetFrogName() + "が出かけている間に\n次の旅に備えて\nみつ葉のクローバーを収穫して\nもちものを用意しておきましょう");
                    help.ActionStock_Add(delegate
                    {
                        help.ClosePanel();
                    });
                    help.ActionStock_Add(delegate
                    {
                        help.ActionStock_Next();
                    });
                    help.ActionStock_New("チュートリアルはここまでです\n" + SuperGameMaster.GetFrogName() + "との\n旅をお楽しみください");
                    help.ActionStock_Add(delegate
                    {
                        help.ClosePanel();
                    });
                    help.ActionStock_Add(delegate
                    {
                        confilm.OpenPanel(string.Empty);
                    });
                    help.ActionStock_Add(delegate
                    {
                        confilm.AddContents(UnityEngine.Object.Instantiate <GameObject>(UI_Cmp.AddConfirm_pref));
                    });
                    help.ActionStock_Add(delegate
                    {
                        confilm.ResetOnClick_Screen();
                    });
                    help.ActionStock_Add(delegate
                    {
                        confilm.SetOnClick_Screen(delegate
                        {
                            confilm.ClosePanel();
                        });
                    });
                    help.ActionStock_Add(delegate
                    {
                        confilm.SetOnClick_Screen(delegate
                        {
                            UI_Cmp.blockUI(false);
                        });
                    });
                    help.ActionStock_Add(delegate
                    {
                        confilm.SetOnClick_Screen(delegate
                        {
                            UI_Cmp.freezeObject(false);
                        });
                    });
                    help.ActionStock_Add(delegate
                    {
                        confilm.SetOnClick_Screen(delegate
                        {
                            UI_Cmp.BackFunc_Stop(false);
                        });
                    });
                    help.ActionStock_Add(delegate
                    {
                        confilm.SetOnClick_Screen(delegate
                        {
                            this.FinishTutorial();
                        });
                    });
                    SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.Drift);
                }
                break;
            }
        }
    }
Ejemplo n.º 8
0
    // Token: 0x06000448 RID: 1096 RVA: 0x0001D6F8 File Offset: 0x0001BAF8
    public byte[] ConvertBinary_Main(bool write, byte[] sByte)
    {
        int           num  = 0;
        List <byte[]> list = new List <byte[]>();
        int           num2 = 4;

        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(Convert.ToInt32(this.version * 10000f), list[list.Count - 1], 0, num2);
        }
        else
        {
            this.version = (float)ByteConverter.ConnectRead(sByte, num, num2) / 10000f;
            num         += num2;
        }
        num2 = 4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(this.supportID, list[list.Count - 1], 0, num2);
        }
        else
        {
            this.supportID = ByteConverter.ConnectRead(sByte, num, num2);
            num           += num2;
        }
        int num3;

        if (write)
        {
            num3 = this.hoten.Count;
        }
        else
        {
            num3 = ByteConverter.ConnectRead(sByte, num, 4);
        }
        int num4 = 1;
        int num5 = 4;

        num2 = 4 + num3 * num4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(num3, list[list.Count - 1], 0, 4);
            int i = 0;
            while (i < num3)
            {
                ByteConverter.ConnectWrite(Convert.ToInt32(this.hoten[i]), list[list.Count - 1], num5, num4);
                i++;
                num5 += num4;
            }
        }
        else
        {
            int i = 0;
            while (i < num3)
            {
                this.hoten.Add(Convert.ToBoolean(ByteConverter.ConnectRead(sByte, num + num5, num4)));
                i++;
                num5 += num4;
            }
            num += num2;
        }
        num2 = 4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(this.CloverPoint, list[list.Count - 1], 0, num2);
        }
        else
        {
            this.CloverPoint = ByteConverter.ConnectRead(sByte, num, num2);
            num += num2;
        }
        num2 = 4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(this.ticket, list[list.Count - 1], 0, num2);
        }
        else
        {
            this.ticket = ByteConverter.ConnectRead(sByte, num, num2);
            num        += num2;
        }
        if (write)
        {
            num3 = this.CloverList.Count;
        }
        else
        {
            num3 = ByteConverter.ConnectRead(sByte, num, 4);
        }
        num4 = new CloverDataFormat().UseByte();
        num5 = 4;
        num2 = 4 + num3 * num4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(num3, list[list.Count - 1], 0, 4);
            int i = 0;
            while (i < num3)
            {
                Buffer.BlockCopy(this.CloverList[i].ConvertBinary(true, null), 0, list[list.Count - 1], num5, num4);
                i++;
                num5 += num4;
            }
        }
        else
        {
            int i = 0;
            while (i < num3)
            {
                byte[] array = new byte[num4];
                Buffer.BlockCopy(sByte, num + num5, array, 0, num4);
                this.CloverList.Add(new CloverDataFormat());
                this.CloverList[this.CloverList.Count - 1].ConvertBinary(false, array);
                i++;
                num5 += num4;
            }
            num += num2;
        }
        num3 = 7;
        num4 = 4;
        num5 = 4;
        num2 = 4 + num3 * num4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(num3, list[list.Count - 1], 0, 4);
            int i = 0;
            while (i < num3)
            {
                switch (i)
                {
                case 0:
                    ByteConverter.ConnectWrite(this.lastDateTime.Year, list[list.Count - 1], num5, num4);
                    break;

                case 1:
                    ByteConverter.ConnectWrite(this.lastDateTime.Month, list[list.Count - 1], num5, num4);
                    break;

                case 2:
                    ByteConverter.ConnectWrite(this.lastDateTime.Day, list[list.Count - 1], num5, num4);
                    break;

                case 3:
                    ByteConverter.ConnectWrite(this.lastDateTime.Hour, list[list.Count - 1], num5, num4);
                    break;

                case 4:
                    ByteConverter.ConnectWrite(this.lastDateTime.Minute, list[list.Count - 1], num5, num4);
                    break;

                case 5:
                    ByteConverter.ConnectWrite(this.lastDateTime.Second, list[list.Count - 1], num5, num4);
                    break;

                case 6:
                    ByteConverter.ConnectWrite(this.lastDateTime.Millisecond, list[list.Count - 1], num5, num4);
                    break;
                }
                i++;
                num5 += num4;
            }
        }
        else
        {
            int[] array2 = new int[7];
            int   i      = 0;
            while (i < num3)
            {
                array2[i] = ByteConverter.ConnectRead(sByte, num + num5, num4);
                i++;
                num5 += num4;
            }
            this.lastDateTime = new DateTime(array2[0], array2[1], array2[2], array2[3], array2[4], array2[5], array2[6]);
            num += num2;
        }
        num2 = 4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(this.MailList_nextId, list[list.Count - 1], 0, num2);
        }
        else
        {
            this.MailList_nextId = ByteConverter.ConnectRead(sByte, num, num2);
            num += num2;
        }
        if (write)
        {
            num3 = this.MailList.Count;
        }
        else
        {
            num3 = ByteConverter.ConnectRead(sByte, num, 4);
        }
        num4 = new MailEventFormat().UseByte();
        num5 = 4;
        num2 = 4 + num3 * num4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(num3, list[list.Count - 1], 0, 4);
            int i = 0;
            while (i < num3)
            {
                Buffer.BlockCopy(this.MailList[i].ConvertBinary(true, null), 0, list[list.Count - 1], num5, num4);
                i++;
                num5 += num4;
            }
        }
        else
        {
            int i = 0;
            while (i < num3)
            {
                byte[] array3 = new byte[num4];
                Buffer.BlockCopy(sByte, num + num5, array3, 0, num4);
                this.MailList.Add(new MailEventFormat());
                this.MailList[this.MailList.Count - 1].ConvertBinary(false, array3);
                i++;
                num5 += num4;
            }
            num += num2;
        }
        if (write)
        {
            num3 = this.ItemList.Count;
        }
        else
        {
            num3 = ByteConverter.ConnectRead(sByte, num, 4);
        }
        num4 = new ItemListFormat().UseByte();
        num5 = 4;
        num2 = 4 + num3 * num4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(num3, list[list.Count - 1], 0, 4);
            int i = 0;
            while (i < num3)
            {
                Buffer.BlockCopy(this.ItemList[i].ConvertBinary(true, null), 0, list[list.Count - 1], num5, num4);
                i++;
                num5 += num4;
            }
        }
        else
        {
            int i = 0;
            while (i < num3)
            {
                byte[] array4 = new byte[num4];
                Buffer.BlockCopy(sByte, num + num5, array4, 0, num4);
                this.ItemList.Add(new ItemListFormat());
                this.ItemList[this.ItemList.Count - 1].ConvertBinary(false, array4);
                i++;
                num5 += num4;
            }
            num += num2;
        }
        if (write)
        {
            num3 = this.bagList.Count;
        }
        else
        {
            num3 = ByteConverter.ConnectRead(sByte, num, 4);
        }
        num4 = 4;
        num5 = 4;
        num2 = 4 + num3 * num4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(num3, list[list.Count - 1], 0, 4);
            int i = 0;
            while (i < num3)
            {
                ByteConverter.ConnectWrite(this.bagList[i], list[list.Count - 1], num5, num4);
                i++;
                num5 += num4;
            }
        }
        else
        {
            int i = 0;
            while (i < num3)
            {
                this.bagList.Add(ByteConverter.ConnectRead(sByte, num + num5, num4));
                i++;
                num5 += num4;
            }
            num += num2;
        }
        if (write)
        {
            num3 = this.deskList.Count;
        }
        else
        {
            num3 = ByteConverter.ConnectRead(sByte, num, 4);
        }
        num4 = 4;
        num5 = 4;
        num2 = 4 + num3 * num4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(num3, list[list.Count - 1], 0, 4);
            int i = 0;
            while (i < num3)
            {
                ByteConverter.ConnectWrite(this.deskList[i], list[list.Count - 1], num5, num4);
                i++;
                num5 += num4;
            }
        }
        else
        {
            int i = 0;
            while (i < num3)
            {
                this.deskList.Add(ByteConverter.ConnectRead(sByte, num + num5, num4));
                i++;
                num5 += num4;
            }
            num += num2;
        }
        if (write)
        {
            num3 = this.bagList_virtual.Count;
        }
        else
        {
            num3 = ByteConverter.ConnectRead(sByte, num, 4);
        }
        num4 = 4;
        num5 = 4;
        num2 = 4 + num3 * num4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(num3, list[list.Count - 1], 0, 4);
            int i = 0;
            while (i < num3)
            {
                ByteConverter.ConnectWrite(this.bagList_virtual[i], list[list.Count - 1], num5, num4);
                i++;
                num5 += num4;
            }
        }
        else
        {
            int i = 0;
            while (i < num3)
            {
                this.bagList_virtual.Add(ByteConverter.ConnectRead(sByte, num + num5, num4));
                i++;
                num5 += num4;
            }
            num += num2;
        }
        if (write)
        {
            num3 = this.deskList_virtual.Count;
        }
        else
        {
            num3 = ByteConverter.ConnectRead(sByte, num, 4);
        }
        num4 = 4;
        num5 = 4;
        num2 = 4 + num3 * num4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(num3, list[list.Count - 1], 0, 4);
            int i = 0;
            while (i < num3)
            {
                ByteConverter.ConnectWrite(this.deskList_virtual[i], list[list.Count - 1], num5, num4);
                i++;
                num5 += num4;
            }
        }
        else
        {
            int i = 0;
            while (i < num3)
            {
                this.deskList_virtual.Add(ByteConverter.ConnectRead(sByte, num + num5, num4));
                i++;
                num5 += num4;
            }
            num += num2;
        }
        if (write)
        {
            num3 = this.collectFlags.Count;
        }
        else
        {
            num3 = ByteConverter.ConnectRead(sByte, num, 4);
        }
        num4 = 1;
        num5 = 4;
        num2 = 4 + num3 * num4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(num3, list[list.Count - 1], 0, 4);
            int i = 0;
            while (i < num3)
            {
                ByteConverter.ConnectWrite(Convert.ToInt32(this.collectFlags[i]), list[list.Count - 1], num5, num4);
                i++;
                num5 += num4;
            }
        }
        else
        {
            int i = 0;
            while (i < num3)
            {
                this.collectFlags.Add(Convert.ToBoolean(ByteConverter.ConnectRead(sByte, num + num5, num4)));
                i++;
                num5 += num4;
            }
            num += num2;
        }
        if (write)
        {
            num3 = this.collectFailedCnt.Count;
        }
        else
        {
            num3 = ByteConverter.ConnectRead(sByte, num, 4);
        }
        num4 = 4;
        num5 = 4;
        num2 = 4 + num3 * num4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(num3, list[list.Count - 1], 0, 4);
            int i = 0;
            while (i < num3)
            {
                ByteConverter.ConnectWrite(this.collectFailedCnt[i], list[list.Count - 1], num5, num4);
                i++;
                num5 += num4;
            }
        }
        else
        {
            int i = 0;
            while (i < num3)
            {
                this.collectFailedCnt.Add(ByteConverter.ConnectRead(sByte, num + num5, num4));
                if (this.collectFailedCnt[i] != 0)
                {
                    Debug.LogWarning(string.Concat(new object[]
                    {
                        "collectFailedCnt[",
                        i,
                        "] ",
                        this.collectFailedCnt[i]
                    }));
                }
                i++;
                num5 += num4;
            }
            num += num2;
        }
        if (write)
        {
            num3 = this.specialtyFlags.Count;
        }
        else
        {
            num3 = ByteConverter.ConnectRead(sByte, num, 4);
        }
        num4 = 1;
        num5 = 4;
        num2 = 4 + num3 * num4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(num3, list[list.Count - 1], 0, 4);
            int i = 0;
            while (i < num3)
            {
                ByteConverter.ConnectWrite(Convert.ToInt32(this.specialtyFlags[i]), list[list.Count - 1], num5, num4);
                i++;
                num5 += num4;
            }
        }
        else
        {
            int i = 0;
            while (i < num3)
            {
                this.specialtyFlags.Add(Convert.ToBoolean(ByteConverter.ConnectRead(sByte, num + num5, num4)));
                i++;
                num5 += num4;
            }
            num += num2;
        }
        if (write)
        {
            num3 = this.evtList_timer.Count;
        }
        else
        {
            num3 = ByteConverter.ConnectRead(sByte, num, 4);
        }
        num4 = new EventTimerFormat().UseByte();
        num5 = 4;
        num2 = 4 + num3 * num4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(num3, list[list.Count - 1], 0, 4);
            int i = 0;
            while (i < num3)
            {
                Buffer.BlockCopy(this.evtList_timer[i].ConvertBinary(true, null), 0, list[list.Count - 1], num5, num4);
                i++;
                num5 += num4;
            }
        }
        else
        {
            int i = 0;
            while (i < num3)
            {
                byte[] array5 = new byte[num4];
                Buffer.BlockCopy(sByte, num + num5, array5, 0, num4);
                this.evtList_timer.Add(new EventTimerFormat());
                this.evtList_timer[this.evtList_timer.Count - 1].ConvertBinary(false, array5);
                i++;
                num5 += num4;
            }
            num += num2;
        }
        if (write)
        {
            num3 = this.evtList_active.Count;
        }
        else
        {
            num3 = ByteConverter.ConnectRead(sByte, num, 4);
        }
        num4 = new EventTimerFormat().UseByte();
        num5 = 4;
        num2 = 4 + num3 * num4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(num3, list[list.Count - 1], 0, 4);
            int i = 0;
            while (i < num3)
            {
                Buffer.BlockCopy(this.evtList_active[i].ConvertBinary(true, null), 0, list[list.Count - 1], num5, num4);
                i++;
                num5 += num4;
            }
        }
        else
        {
            int i = 0;
            while (i < num3)
            {
                byte[] array6 = new byte[num4];
                Buffer.BlockCopy(sByte, num + num5, array6, 0, num4);
                this.evtList_active.Add(new EventTimerFormat());
                this.evtList_active[this.evtList_active.Count - 1].ConvertBinary(false, array6);
                i++;
                num5 += num4;
            }
            num += num2;
        }
        num2 = 4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite((int)this.tutorialStep, list[list.Count - 1], 0, num2);
        }
        else
        {
            this.tutorialStep = (Step)ByteConverter.ConnectRead(sByte, num, num2);
            num += num2;
        }
        if (write)
        {
            num3 = this.firstFlag.Count;
        }
        else
        {
            num3 = ByteConverter.ConnectRead(sByte, num, 4);
        }
        num4 = 1;
        num5 = 4;
        num2 = 4 + num3 * num4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(num3, list[list.Count - 1], 0, 4);
            int i = 0;
            while (i < num3)
            {
                ByteConverter.ConnectWrite(Convert.ToInt32(this.firstFlag[i]), list[list.Count - 1], num5, num4);
                i++;
                num5 += num4;
            }
        }
        else
        {
            int i = 0;
            while (i < num3)
            {
                this.firstFlag.Add(Convert.ToBoolean(ByteConverter.ConnectRead(sByte, num + num5, num4)));
                i++;
                num5 += num4;
            }
            num += num2;
        }
        num2 = 20;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWriteString(this.frogName, list[list.Count - 1], 0, num2);
        }
        else
        {
            this.frogName = ByteConverter.ConnectReadString(sByte, num, num2);
            num          += num2;
        }
        num2 = 4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(this.frogAchieveId, list[list.Count - 1], 0, num2);
        }
        else
        {
            this.frogAchieveId = ByteConverter.ConnectRead(sByte, num, num2);
            num += num2;
        }
        if (write)
        {
            num3 = this.achieveFlags.Count;
        }
        else
        {
            num3 = ByteConverter.ConnectRead(sByte, num, 4);
        }
        num4 = 1;
        num5 = 4;
        num2 = 4 + num3 * num4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(num3, list[list.Count - 1], 0, 4);
            int i = 0;
            while (i < num3)
            {
                ByteConverter.ConnectWrite(Convert.ToInt32(this.achieveFlags[i]), list[list.Count - 1], num5, num4);
                i++;
                num5 += num4;
            }
        }
        else
        {
            int i = 0;
            while (i < num3)
            {
                this.achieveFlags.Add(Convert.ToBoolean(ByteConverter.ConnectRead(sByte, num + num5, num4)));
                i++;
                num5 += num4;
            }
            num += num2;
        }
        num2 = 4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(this.frogMotion, list[list.Count - 1], 0, num2);
        }
        else
        {
            this.frogMotion = ByteConverter.ConnectRead(sByte, num, num2);
            num            += num2;
        }
        num2 = 1;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(Convert.ToInt32(this.home), list[list.Count - 1], 0, num2);
        }
        else
        {
            this.home = Convert.ToBoolean(ByteConverter.ConnectRead(sByte, num, num2));
            num      += num2;
        }
        num2 = 1;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(Convert.ToInt32(this.drift), list[list.Count - 1], 0, num2);
        }
        else
        {
            this.drift = Convert.ToBoolean(ByteConverter.ConnectRead(sByte, num, num2));
            num       += num2;
        }
        num2 = 4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(this.restTime, list[list.Count - 1], 0, num2);
        }
        else
        {
            this.restTime = ByteConverter.ConnectRead(sByte, num, num2);
            num          += num2;
        }
        num2 = 4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(this.lastTravelTime, list[list.Count - 1], 0, num2);
        }
        else
        {
            this.lastTravelTime = ByteConverter.ConnectRead(sByte, num, num2);
            num += num2;
        }
        num2 = 1;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(Convert.ToInt32(this.standby), list[list.Count - 1], 0, num2);
        }
        else
        {
            this.standby = Convert.ToBoolean(ByteConverter.ConnectRead(sByte, num, num2));
            num         += num2;
        }
        num2 = 4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(this.standbyWait, list[list.Count - 1], 0, num2);
        }
        else
        {
            this.standbyWait = ByteConverter.ConnectRead(sByte, num, num2);
            num += num2;
        }
        num2 = 4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(this.bgmVolume, list[list.Count - 1], 0, num2);
        }
        else
        {
            this.bgmVolume = ByteConverter.ConnectRead(sByte, num, num2);
            num           += num2;
        }
        num2 = 4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(this.seVolume, list[list.Count - 1], 0, num2);
        }
        else
        {
            this.seVolume = ByteConverter.ConnectRead(sByte, num, num2);
            num          += num2;
        }
        num2 = 1;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(Convert.ToInt32(this.NoticeFlag), list[list.Count - 1], 0, num2);
        }
        else
        {
            this.NoticeFlag = Convert.ToBoolean(ByteConverter.ConnectRead(sByte, num, num2));
            num            += num2;
        }
        if (write)
        {
            num3 = this.gameFlags.Count;
        }
        else
        {
            num3 = ByteConverter.ConnectRead(sByte, num, 4);
        }
        num4 = 4;
        num5 = 4;
        num2 = 4 + num3 * num4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(num3, list[list.Count - 1], 0, 4);
            int i = 0;
            while (i < num3)
            {
                ByteConverter.ConnectWrite(this.gameFlags[i], list[list.Count - 1], num5, num4);
                i++;
                num5 += num4;
            }
        }
        else
        {
            int i = 0;
            while (i < num3)
            {
                this.gameFlags.Add(ByteConverter.ConnectRead(sByte, num + num5, num4));
                i++;
                num5 += num4;
            }
            num += num2;
        }
        num2 = 4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(this.tmpRaffleResult, list[list.Count - 1], 0, num2);
        }
        else
        {
            this.tmpRaffleResult = ByteConverter.ConnectRead(sByte, num, num2);
            num += num2;
        }
        num2 = 4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(Convert.ToInt32(this.version_start * 10000f), list[list.Count - 1], 0, num2);
        }
        else
        {
            this.version_start = (float)ByteConverter.ConnectRead(sByte, num, num2) / 10000f;
            num += num2;
        }
        num2 = 4;
        if (write)
        {
            list.Add(new byte[num2]);
            ByteConverter.ConnectWrite(this.iapCallBackCnt, list[list.Count - 1], 0, num2);
        }
        else if (this.version >= 1.05f)
        {
            this.iapCallBackCnt = ByteConverter.ConnectRead(sByte, num, num2);
            num += num2;
        }
        if (!write && this.version < 1.05f)
        {
            this.supportID = UnityEngine.Random.Range(0, 1000000000);
            this.hoten[0]  = true;
        }
        if (write)
        {
            int num6 = 0;
            foreach (byte[] array7 in list)
            {
                num6 += array7.Length;
            }
            sByte = new byte[num6];
            foreach (byte[] array8 in list)
            {
                Buffer.BlockCopy(array8, 0, sByte, num, array8.Length);
                num += array8.Length;
            }
            return(sByte);
        }
        return(null);
    }
Ejemplo n.º 9
0
 // Token: 0x06000384 RID: 900 RVA: 0x000145D4 File Offset: 0x000129D4
 public void CheckTravelEvent()
 {
     if (SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.BackHome) != -1 || SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.Return) != -1)
     {
         int num = SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.Return);
         if (num != -1)
         {
             EventTimerFormat eventTimerFormat = SuperGameMaster.evtMgr.get_ActEvt(num);
             SuperGameMaster.evtMgr.delete_ActEvt_forId(eventTimerFormat.id);
         }
         if (SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.BackHome) == -1)
         {
             this.OpenView(ResultPanel.ResultMode.Return);
             this.BackFunc();
         }
         else
         {
             this.OpenView(ResultPanel.ResultMode.BackTravel);
             this.BackFunc();
         }
         SuperGameMaster.SetFrogMotion(-1);
     }
     else if (SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.Picture) != -1)
     {
         this.OpenView(ResultPanel.ResultMode.Picture);
         this.BackFunc();
     }
     else if (SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.GoTravel) != -1)
     {
         this.OpenView(ResultPanel.ResultMode.GoTravel);
         this.BackFunc();
     }
     else if (SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.Drift) != -1)
     {
         this.OpenView(ResultPanel.ResultMode.Drift);
         this.BackFunc();
     }
     else if (SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.Friend) != -1 && this.FriendComeCheck())
     {
         this.OpenView(ResultPanel.ResultMode.Friend);
         this.BackFunc();
     }
     else
     {
         if (this.MODE != ResultPanel.ResultMode.NONE)
         {
             SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Cancel"]);
         }
         if (!SuperGameMaster.GetFirstFlag(Flag.FIRST_COME_FRIEND) && this.MODE == ResultPanel.ResultMode.Friend)
         {
             SuperGameMaster.audioMgr.StopSE();
             SuperGameMaster.SetFirstFlag(Flag.FIRST_COME_FRIEND);
             base.GetComponentInParent <UIMaster>().freezeObject(true);
             base.GetComponentInParent <UIMaster>().blockUI(true, new Color(0f, 0f, 0f, 0f));
             HelpPanel help = base.GetComponentInParent <UIMaster_MainOut>().HelpUI.GetComponent <HelpPanel>();
             help.OpenPanel(SuperGameMaster.GetFrogName() + "の<color=#61a8c7><b>友だち</b></color>が遊びにきました\n" + SuperGameMaster.GetFrogName() + "からもらった<color=#61a8c7><b>めいぶつ</b></color>で\n<color=#61a8c7><b>おもてなし</b></color>をしてあげましょう");
             help.ResetOnClick_Screen();
             help.SetOnClick_Screen(delegate
             {
                 help.ClosePanel();
             });
             help.SetOnClick_Screen(delegate
             {
                 this.GetComponentInParent <UIMaster>().freezeObject(false);
             });
             help.SetOnClick_Screen(delegate
             {
                 this.GetComponentInParent <UIMaster>().blockUI(false, new Color(0f, 0f, 0f, 0f));
             });
         }
         if (this.MODE == ResultPanel.ResultMode.Friend)
         {
             this.MailUI.CheckNewMail();
         }
         base.GetComponentInParent <UIMaster_MainOut>().BackFunc();
     }
 }
Ejemplo n.º 10
0
 // Token: 0x0600038A RID: 906 RVA: 0x00014F24 File Offset: 0x00013324
 public void LoadResult()
 {
     this.InfoButton.SetActive(true);
     this.InfoButtonPage         = 0;
     this.InfoButtonImage.sprite = this.LabelSprites[0];
     if (SuperGameMaster.GetHome())
     {
         this.InfoButtonText.GetComponent <Text>().text = SuperGameMaster.GetFrogName() + "が\n帰っています";
     }
     else
     {
         this.InfoButtonText.GetComponent <Text>().text = SuperGameMaster.GetFrogName() + "が\n帰っていたようです";
     }
     this.nowPage = 0;
     this.pageMax = 0;
     this.TravelPanel.transform.localPosition = Vector3.zero;
     while (SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.BackHome) != -1)
     {
         int index = SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.BackHome);
         EventTimerFormat eventTimerFormat = SuperGameMaster.evtMgr.get_ActEvt(index);
         int num  = eventTimerFormat.evtValue[1];
         int num2 = SuperGameMaster.get_Flag(Flag.Type.TRAVEL_TIMEMIN);
         int num3 = SuperGameMaster.get_Flag(Flag.Type.TRAVEL_TIMEMAX);
         if (num2 == 0)
         {
             SuperGameMaster.set_Flag(Flag.Type.TRAVEL_TIMEMIN, num);
         }
         if (num2 > num)
         {
             SuperGameMaster.set_Flag(Flag.Type.TRAVEL_TIMEMIN, num);
         }
         if (num3 < num)
         {
             SuperGameMaster.set_Flag(Flag.Type.TRAVEL_TIMEMAX, num);
         }
         bool success = false;
         if (eventTimerFormat.evtValue[0] == 0)
         {
             success = true;
         }
         List <int> list = new List <int>(eventTimerFormat.evtValue);
         list.RemoveAt(0);
         list.RemoveAt(0);
         Vector3 position = new Vector3(this.TravelResultPref.transform.localPosition.x, this.TravelResultPref.transform.localPosition.y, 0f);
         position.x += (float)(this.pageWidth * this.pageMax);
         GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.TravelResultPref, position, Quaternion.identity);
         gameObject.transform.SetParent(this.TravelPanel.GetComponent <RectTransform>(), false);
         gameObject.GetComponent <TravelResultPanel>().Controller = base.gameObject;
         gameObject.GetComponent <TravelResultPanel>().CreateResult(success, eventTimerFormat.id, new List <int>(list), eventTimerFormat.evtId);
         SuperGameMaster.getCloverPoint(list[0]);
         SuperGameMaster.GetTicket(list[1]);
         list.RemoveAt(0);
         list.RemoveAt(0);
         for (int i = 0; i < list.Count; i += 2)
         {
             SuperGameMaster.GetItem(list[i], list[i + 1]);
         }
         SuperGameMaster.evtMgr.delete_ActEvt_forId(eventTimerFormat.id);
         this.pageMax++;
     }
     this.S_FlickChecker.stopFlick(true);
     SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Enter"]);
 }
Ejemplo n.º 11
0
    // Token: 0x06000388 RID: 904 RVA: 0x00014BA8 File Offset: 0x00012FA8
    public void LoadMessage()
    {
        switch (this.MODE)
        {
        case ResultPanel.ResultMode.GoTravel:
        {
            this.InfoButton.SetActive(true);
            this.InfoButtonImage.sprite = this.LabelSprites[0];
            this.InfoButtonText.GetComponent <Text>().text = SuperGameMaster.GetFrogName() + "は\n旅立っています";
            int index = SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.GoTravel);
            EventTimerFormat eventTimerFormat = SuperGameMaster.evtMgr.get_ActEvt(index);
            SuperGameMaster.evtMgr.delete_ActEvt_forId(eventTimerFormat.id);
            SuperGameMaster.set_FlagAdd(Flag.Type.GOTRAVEL, 1);
            break;
        }

        case ResultPanel.ResultMode.Drift:
        {
            this.InfoButton.SetActive(true);
            this.InfoButtonImage.sprite = this.LabelSprites[0];
            this.InfoButtonText.GetComponent <Text>().text = SuperGameMaster.GetFrogName() + "は\nどこかへ出かけています";
            int index2 = SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.Drift);
            EventTimerFormat eventTimerFormat2 = SuperGameMaster.evtMgr.get_ActEvt(index2);
            SuperGameMaster.evtMgr.delete_ActEvt_forId(eventTimerFormat2.id);
            SuperGameMaster.set_FlagAdd(Flag.Type.GOTRAVEL, 1);
            break;
        }

        case ResultPanel.ResultMode.Friend:
        {
            string              text                = string.Empty;
            int                 index3              = SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.Friend);
            EventTimerFormat    eventTimerFormat3   = SuperGameMaster.evtMgr.get_ActEvt(index3);
            CharacterDataFormat characterDataFormat = SuperGameMaster.sDataBase.get_CharaDB_forId(eventTimerFormat3.evtId);
            this.InfoButtonImage.sprite = this.LabelSprites[1];
            text = text + characterDataFormat.name + "が\n遊びにきています";
            List <int> list = new List <int>();
            list.Add(eventTimerFormat3.evtValue[0]);
            list.Add(eventTimerFormat3.evtValue[1]);
            list.Add(eventTimerFormat3.evtValue[2]);
            list.Add(eventTimerFormat3.evtValue[3]);
            list.Add(eventTimerFormat3.evtValue[4]);
            list.Add(1);
            SuperGameMaster.evtMgr.set_ActEvt_forId(eventTimerFormat3.id, list);
            this.InfoButton.SetActive(true);
            this.InfoButtonText.GetComponent <Text>().text = text;
            if (UnityEngine.Random.Range(0, 100) < 100)
            {
                int num = SuperGameMaster.saveData.MailList.FindIndex((MailEventFormat mail) => mail.mailEvt.Equals(EvtId.Leaflet));
                if (num == -1)
                {
                    MailEventFormat mailEventFormat = new MailEventFormat();
                    mailEventFormat.NewMail();
                    mailEventFormat.title         = characterDataFormat.name + "のチラシ";
                    mailEventFormat.senderCharaId = characterDataFormat.id;
                    mailEventFormat.mailEvt       = EvtId.Leaflet;
                    mailEventFormat.mailId        = SuperGameMaster.saveData.MailList_nextId;
                    mailEventFormat.date          = SuperGameMaster.saveData.lastDateTime;
                    this.MailUI.CreateMailEvt(mailEventFormat);
                }
            }
            break;
        }

        case ResultPanel.ResultMode.Return:
            this.InfoButton.SetActive(true);
            this.InfoButtonImage.sprite = this.LabelSprites[0];
            this.InfoButtonText.GetComponent <Text>().text = SuperGameMaster.GetFrogName() + "が\n帰ってきました";
            break;
        }
    }
Ejemplo n.º 12
0
    // Token: 0x06000262 RID: 610 RVA: 0x00007E94 File Offset: 0x00006294
    public void selectedItem(int charaId, int itemId)
    {
        if (itemId == -1)
        {
            this.ResetFocus();
            return;
        }
        int index = this.RefChara.FindIndex((GameObject rec) => rec.GetComponent <CharaObject>().charaId.Equals(charaId));
        EventTimerFormat eventTimerFormat = SuperGameMaster.evtMgr.get_ActEvt_forId(this.RefActEvtId[index]);
        ItemDataFormat   itemDataFormat   = new ItemDataFormat();

        itemDataFormat = SuperGameMaster.sDataBase.get_ItemDB_forId(itemId);
        bool flag = false;

        for (int i = 0; i < itemDataFormat.effectType.Length; i++)
        {
            if (itemDataFormat.effectElm[i] == EffectElm.FL_RARE)
            {
                flag = true;
            }
        }
        int num  = UnityEngine.Random.Range(0, 100);
        int num2 = 0;

        Define.Gift gift = Define.Gift.NONE;
        for (int j = 0; j < 3; j++)
        {
            if (flag)
            {
                num2 += Define.FRIEND_GIFTPER_RARE[(Define.Gift)j];
            }
            else
            {
                num2 += Define.FRIEND_GIFTPER_NORMAL[(Define.Gift)j];
            }
            if (num < num2)
            {
                gift = (Define.Gift)j;
                break;
            }
        }
        CharacterDataFormat characterDataFormat = SuperGameMaster.sDataBase.get_CharaDB_forId(charaId);
        int num3 = Define.FRIEND_GIFTFIX[gift];

        if (gift != Define.Gift.Clover)
        {
            if (gift != Define.Gift.FourClover)
            {
                if (gift == Define.Gift.Ticket)
                {
                    if (flag)
                    {
                        num3 += UnityEngine.Random.Range(1, 4);
                    }
                }
            }
        }
        else
        {
            int   num4 = SuperGameMaster.sDataBase.get_CharaDB_rowItemId_index(itemId);
            float num5 = (100f + (float)characterDataFormat.taste[num4]) / 100f;
            float num6 = (float)(eventTimerFormat.activeTime / 1800);
            int   num7 = new List <int>
            {
                eventTimerFormat.evtValue[2],
                eventTimerFormat.evtValue[3],
                eventTimerFormat.evtValue[4]
            }.FindIndex((int rec) => rec.Equals(itemId));
            float num8 = 1f;
            if (num7 != -1)
            {
                num8 = Define.FRIEND_ITEM_DEBUFF[num7];
            }
            num3 += (int)((float)characterDataFormat.cloverPow * num5 * num6 * num8 / 15f);
            Debug.Log(string.Concat(new object[]
            {
                "みつば数算出:[",
                num3,
                "] pow = ",
                characterDataFormat.cloverPow,
                " / taste = ",
                num5,
                " / count = ",
                num6,
                " / buf = ",
                num8
            }));
            if (flag)
            {
                num3 += 20;
            }
        }
        Debug.Log(string.Concat(new object[]
        {
            "[CharaTable] お返しの抽選を行ないました: charaId = ",
            charaId,
            " / itemId = ",
            itemId,
            "(",
            flag,
            ") >> ",
            gift.ToString(),
            "(",
            num3,
            ")"
        }));
        List <int> list = new List <int>();

        list.Add(eventTimerFormat.evtValue[0]);
        list.Add(1);
        list.Add(itemId);
        list.Add(eventTimerFormat.evtValue[2]);
        list.Add(eventTimerFormat.evtValue[3]);
        list.Add(eventTimerFormat.evtValue[5]);
        SuperGameMaster.evtMgr.set_ActEvt_forId(eventTimerFormat.id, list);
        EventTimerFormat eventTimerFormat2 = new EventTimerFormat();

        eventTimerFormat2.id          = -1;
        eventTimerFormat2.timeSpanSec = eventTimerFormat.timeSpanSec;
        eventTimerFormat2.activeTime  = -1;
        eventTimerFormat2.addTime     = new DateTime(1970, 1, 1);
        eventTimerFormat2.evtType     = TimerEvent.Type.Gift;
        eventTimerFormat2.evtId       = charaId;
        eventTimerFormat2.evtValue    = new List <int>();
        eventTimerFormat2.evtValue.Add((int)gift);
        eventTimerFormat2.evtValue.Add(num3);
        eventTimerFormat2.trigger = true;
        SuperGameMaster.evtMgr.TimerAdd(eventTimerFormat2);
        this.ResetFocus();
        SuperGameMaster.UseItem(itemId, 1);
        this.ConfilmUI.GetComponentInParent <UIMaster>().freezeObject(true);
        this.ConfilmUI.GetComponentInParent <UIMaster>().blockUI(true, new Color(0.3f, 0.3f, 0.3f, 0f));
        ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();

        confilm.OpenPanel(characterDataFormat.name + "に" + itemDataFormat.name + "\nをふるまいました");
        confilm.ResetOnClick_Screen();
        confilm.SetOnClick_Screen(delegate
        {
            confilm.ClosePanel();
        });
        confilm.SetOnClick_Screen(delegate
        {
            this.ConfilmUI.GetComponentInParent <UIMaster>().freezeObject(false);
        });
        confilm.SetOnClick_Screen(delegate
        {
            this.ConfilmUI.GetComponentInParent <UIMaster>().blockUI(false, new Color(0f, 0f, 0f, 0f));
        });
    }
Ejemplo n.º 13
0
    // Token: 0x06000264 RID: 612 RVA: 0x000083B8 File Offset: 0x000067B8
    public void CheckFriendCreate()
    {
        List <int> list = new List <int>();

        foreach (EventTimerFormat eventTimerFormat in SuperGameMaster.evtMgr.get_ActEvtList_forType(TimerEvent.Type.Friend))
        {
            if (list.Count == 0)
            {
                this.CreteCharacter(eventTimerFormat.evtId, eventTimerFormat.evtValue[0]);
                this.RefActEvtId.Add(eventTimerFormat.id);
            }
            list.Add(eventTimerFormat.evtId);
        }
        foreach (EventTimerFormat eventTimerFormat2 in SuperGameMaster.evtMgr.get_TimerEvtList_forType(TimerEvent.Type.Friend))
        {
            list.Add(eventTimerFormat2.evtId);
        }
        int makeId = -1;
        int charaDB_lastIndexId = SuperGameMaster.sDataBase.get_CharaDB_lastIndexId();

        while (list.Count < SuperGameMaster.sDataBase.count_CharaDB())
        {
            while (makeId < charaDB_lastIndexId)
            {
                makeId++;
                Debug.Log(string.Concat(new object[]
                {
                    "makeId = ",
                    makeId,
                    " / maxId",
                    charaDB_lastIndexId,
                    " // listCnt",
                    list.Count,
                    " / DBCount = ",
                    SuperGameMaster.sDataBase.count_CharaDB()
                }));
                if (list.FindIndex((int rec) => rec.Equals(makeId)) == -1)
                {
                    if (SuperGameMaster.sDataBase.search_CharaDBIndex_forId(makeId) != -1)
                    {
                        break;
                    }
                }
            }
            EventTimerFormat eventTimerFormat3 = new EventTimerFormat();
            eventTimerFormat3.id          = -1;
            eventTimerFormat3.timeSpanSec = 1;
            eventTimerFormat3.activeTime  = 0;
            eventTimerFormat3.addTime     = new DateTime(1970, 1, 1);
            eventTimerFormat3.evtType     = TimerEvent.Type.Friend;
            eventTimerFormat3.evtId       = makeId;
            eventTimerFormat3.evtValue    = new List <int>();
            eventTimerFormat3.evtValue.Add(0);
            eventTimerFormat3.evtValue.Add(0);
            eventTimerFormat3.evtValue.Add(-1);
            eventTimerFormat3.evtValue.Add(-1);
            eventTimerFormat3.evtValue.Add(-1);
            eventTimerFormat3.evtValue.Add(0);
            eventTimerFormat3.trigger = false;
            SuperGameMaster.evtMgr.TimerAdd(eventTimerFormat3);
            list.Add(makeId);
            Debug.Log("[CharaTable] キャラID(" + makeId + ")に対する Timer / Active のイベントが存在しなかったため、Timer イベントを生成しました。");
        }
    }