Example #1
0
 private MapManager()
 {
     this.kWorldMapATB = new NkWorldMapATB();
     this.m_nAutoMoveDestMapIndex[0] = 2;
     this.m_nAutoMoveDestMapIndex[1] = 62;
     this.m_nAutoMoveDestMapIndex[2] = 63;
     this.m_nAutoMoveDestMapIndex[3] = 64;
     this.m_nAutoMoveDestMapIndex[4] = 65;
 }
    public override bool ParseDataFromNDT(TsDataReader dr)
    {
        if (this.bWorldMap)
        {
            NkWorldMapATB worldMapATB = NrTSingleton <MapManager> .Instance.GetWorldMapATB();

            if (worldMapATB != null)
            {
                return(worldMapATB.ParseDataFromNDT(dr));
            }
        }
        return(false);
    }
    public void Other()
    {
        if (NkInputManager.GetKeyUp(KeyCode.F9))
        {
        }
        if (NkInputManager.GetKeyUp(KeyCode.F10))
        {
            NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.NEWEXPLORATION_MAIN_DLG);
        }
        if (NkInputManager.GetKeyUp(KeyCode.Z) && NkInputManager.GetKey(KeyCode.LeftShift))
        {
            GameObject gameObject = GameObject.Find("back light");
            if (gameObject != null)
            {
                gameObject.SetActive(false);
            }
        }
        if (NkInputManager.GetKeyUp(KeyCode.Q) && NkInputManager.GetKey(KeyCode.LeftShift))
        {
            NrTSingleton <FormsManager> .Instance.ShowForm(G_ID.QUEST_GM_DLG);
        }
        if (NkInputManager.GetKeyUp(KeyCode.C) && NkInputManager.GetKey(KeyCode.LeftShift))
        {
            Screen.fullScreen = !Screen.fullScreen;
        }
        if (NkInputManager.GetKeyUp(KeyCode.C) && NkInputManager.GetKey(KeyCode.RightShift))
        {
            NkWorldMapATB worldMapATB = NrTSingleton <MapManager> .Instance.GetWorldMapATB();

            if (worldMapATB != null)
            {
                worldMapATB.ShowCellGrid();
            }
        }
        if (NkInputManager.GetKeyUp(KeyCode.U) && NkInputManager.GetKey(KeyCode.RightShift))
        {
            GUICamera.ShowUI_Toggle();
        }
        if (NkInputManager.GetKeyUp(KeyCode.D) && NkInputManager.GetKey(KeyCode.LeftShift))
        {
            if (!NrTSingleton <FormsManager> .Instance.IsShow(G_ID.MESSAGE_DLG))
            {
                NrTSingleton <FormsManager> .Instance.ShowForm(G_ID.MESSAGE_DLG);
            }
            else
            {
                NrTSingleton <FormsManager> .Instance.Hide(G_ID.MESSAGE_DLG);
            }
        }
        if (NkInputManager.GetKey(KeyCode.LeftShift) && NkInputManager.GetKey(KeyCode.LeftControl) && NkInputManager.GetKeyUp(KeyCode.D))
        {
            NrTSingleton <MapManager> .Instance.ShowDestPosition(true);
        }
        if (NkInputManager.GetKey(KeyCode.LeftShift) && NkInputManager.GetKey(KeyCode.LeftAlt) && NkInputManager.GetKeyUp(KeyCode.D))
        {
            NrTSingleton <MapManager> .Instance.ShowDestPosition(false);
        }
        if (NkInputManager.GetKeyDown(KeyCode.Alpha1) && NkInputManager.GetKey(KeyCode.LeftShift) && Scene.CurScene != Scene.Type.BATTLE)
        {
            NrTSingleton <NkCharManager> .Instance.ToggleShowCharUnique();

            NrTSingleton <NkQuestManager> .Instance.ToggleQeustUnique();
        }
        if (NkInputManager.GetKeyDown(KeyCode.P) && NkInputManager.GetKey(KeyCode.LeftShift))
        {
            NrTSingleton <NrAutoPath> .Instance.ShowRPPoint();
        }
        if (NkInputManager.GetKeyDown(KeyCode.P) && NkInputManager.GetKey(KeyCode.RightShift))
        {
            NrTSingleton <NrAutoPath> .Instance.ClearRPPoint();
        }
        if (!NkInputManager.GetKey(KeyCode.LeftAlt) || NkInputManager.GetKeyUp(KeyCode.K))
        {
        }
        if (NkInputManager.GetKeyUp(KeyCode.S) && NkInputManager.GetKey(KeyCode.LeftShift))
        {
            if (!NrTSingleton <FormsManager> .Instance.IsShow(G_ID.DLG_AUDIO))
            {
                NrTSingleton <FormsManager> .Instance.ShowForm(G_ID.DLG_AUDIO);
            }
            else
            {
                NrTSingleton <FormsManager> .Instance.Hide(G_ID.DLG_AUDIO);
            }
        }
        if (!NkInputManager.GetKeyUp(KeyCode.Alpha2) || NkInputManager.GetKey(KeyCode.LeftShift))
        {
        }
        if (NkInputManager.GetKeyUp(KeyCode.A) && NkInputManager.GetKey(KeyCode.LeftShift) && !Scene.IsCurScene(Scene.Type.SOLDIER_BATCH))
        {
            SoldierBatch.SOLDIER_BATCH_MODE        = eSOLDIER_BATCH_MODE.MODE_GUILDBOSS_MAKEUP;
            SoldierBatch.GUILDBOSS_INFO.m_i16Floor = 1;
            FacadeHandler.PushStage(Scene.Type.SOLDIER_BATCH);
        }
    }