public GameRoomMgr()
 {
     dRooms          = new Dictionary <uint, BaseRoomItem>();
     dRooms[0]       = new BaseRoomItem();
     dRooms[9999999] = new PlotRoom();
     dRooms[3334]    = new ExpRoom();
     dRooms[3335]    = new MoneyRoom();
     dRooms[3339]    = new FSWZRoom();
     dRooms[3338]    = new MLZDRoom();
     dRooms[3340]    = new ZHSLYRoom();
     dRooms[3348]    = new ZHSLYRoom();
     dRooms[3349]    = new ZHSLYRoom();
     dRooms[3350]    = new ZHSLYRoom();
     dRooms[3351]    = new ZHSLYRoom();
     dRooms[3352]    = new ZHSLYRoom();
     dRooms[3353]    = new ZHSLYRoom();
     dRooms[3354]    = new ZHSLYRoom();
     dRooms[3355]    = new ZHSLYRoom();
     dRooms[3356]    = new ZHSLYRoom();
     dRooms[3341]    = new PVPRoom();
     dRooms[3342]    = new WdsyRoom();
     dRooms[3344]    = new DragonRoom();
     dRooms[3345]    = new TlfbRoom109();
     dRooms[3346]    = new TlfbRoom110();
     dRooms[3347]    = new TlfbRoom111();
     dRooms[3357]    = new JDZCRoom();
     dRooms[3358]    = new CityWarRoom();
 }
示例#2
0
        public override void onStart(Variant svr)
        {
            base.onStart(svr);
            showHpBtn = a1_gamejoy.inst_skillbar.m_skillbar_hp_Add_btn.gameObject.activeSelf;
            a1_gamejoy.inst_skillbar.m_skillbar_hp_Add_btn.gameObject.SetActive(false);
            instan = this;
            a3_insideui_fb.room = this;
            isOpen = true;
            data   = MapModel.getInstance().getMapDta(107);
            if (data == null)
            {
                data = new MapData();
            }
            MapModel.getInstance().AddMapDta(107, data);
            //data.OnKillNumChange = (int i) => {
            //    if (a3_insideui_fb.instance != null)
            //    {
            //        a3_insideui_fb.instance.SetKillNum(i);
            //    }
            //};
            startExp   = PlayerModel.getInstance().exp;
            entertimer = muNetCleint.instance.CurServerTimeStamp;
            a3_insideui_fb.begintime = entertimer;
            enterdata = muLGClient.instance.g_levelsCT.get_curr_lvl_info();
            MapModel.getInstance().curLevelId = 107;
            // InterfaceMgr.doCommandByLua("MapModel:getInstance().getcurLevelId", "model/MapModel", 107);
            a3_insideui_fb.ShowInUI(a3_insideui_fb.e_room.PVP);
            if (a3_liteMinimap.instance != null)
            {
                a3_liteMinimap.instance.updateUICseth();
            }
            if (a3_liteMinimap.instance != null)
            {
                a3_liteMinimap.instance.refreshByUIState();
            }
            if (a1_gamejoy.inst_skillbar)
            {
                a1_gamejoy.inst_skillbar.clearCD();
            }
            Variant v = new Variant();

            InterfaceMgr.doCommandByLua("MapModel:getInstance().getcurLevelId", "model/MapModel", MapModel.getInstance().curLevelId);
            InterfaceMgr.doCommandByLua("a1_low_fightgame.refresh_map_ByUIState", "ui/interfaces/low/a1_low_fightgame", v);
            InterfaceMgr.doCommandByLua("a1_low_fightgame.refresh_btn_ByUIState", "ui/interfaces/low/a1_low_fightgame", v);
            InterfaceMgr.doCommandByLua("a1_high_fightgame.close_heroih_ani", "ui/interfaces/high/a1_high_fightgame");
            if (tragethead.instance != null)
            {
                tragethead.instance.inFB = true;
            }
            if (data != null)
            {
                data.cycleCount++;
            }

            if (a3_expbar.instance)
            {
                a3_expbar.instance.showBtnIcon(false);
            }
            if (a3_equipup.instance)
            {
                a3_equipup.instance.showbtnIcom(false);
            }
            if (a1_gamejoy.inst_joystick)
            {
                a1_gamejoy.inst_joystick.show_btnIcon(false);
            }
            if (a3_liteMinimap.instance)
            {
                a3_liteMinimap.instance.showbtnIcon(false);
            }
        }