Ejemplo n.º 1
0
    public void onCreateRoomBtnClick()
    {
        ////判断AS丢来的房间属性数量是否正确
        //if (_mapProterty.GetArraySize() != 2)
        //{
        //    Trace.LogError("AS传来的房间属性不正常,创建房间失败");
        //    return;
        //}


        //int tmpMapID = (int)_mapProterty.GetElement(0);
        //Trace.LogError("tmpMapID=" + tmpMapID);
        //点击创房间之后进入等待其他玩家加入界面



        cmd_match_create_room data = new cmd_match_create_room();

        data.szName = "";

        ViewEventHelper.Instance.SendCommand <cmd_match_create_room>(GameLogicDef.GVIEWCMD_MATCH_CREATE_ROOM, ref data);

        // (SFGFxMovieManager.GetWindow<("GFxGameWaitingRoomWin") as GFxGameWaitingRoomWin).SetMovieVisible(true);
        //  this.SetMovieVisible(false);
    }
Ejemplo n.º 2
0
        public void SendCreateRoomMessage(int nMatchType, string RoomName, string strPasswrod, Byte byPermitOb)
        {
            cmd_match_create_room data = new cmd_match_create_room();

            data.szName        = RoomName;
            data.nMatchType    = nMatchType;
            data.bHavePassWord = strPasswrod.Length;
            data.szPassword    = strPasswrod;
            data.byPermitOb    = byPermitOb;

            ViewEventHelper.Instance.SendCommand <cmd_match_create_room>(GameLogicDef.GVIEWCMD_MATCH_CREATE_ROOM, ref data);
            SendUIOpenCreateRoomMessage();
        }