Beispiel #1
0
        public void SendLoginGameServer(CMD_LoginServer item)//命令ID:2,登录到游戏服务器
        {
            byte[] temp = ProtoBufSerialize <CMD_LoginServer> .Serialize(item);

            NET_KWX.Instance_.SendDATA(new BufferData()
            {
                Cmd = 2, Buf = temp
            });
        }
Beispiel #2
0
    public void LinkGameServerOK()
    {
        IsJianCeNet = true;//当链接游戏服务器成功时开启断线检测
        //登陆游戏服务器
        CMD_LoginServer LoginServer_ = new CMD_LoginServer()
        {
            Password = Password,
            RoomID   = RoomID,
            SeatID   = SeatID
        };

        KWXFrom.GetIns.GameCmd.SendLoginGameServer(LoginServer_);
    }
Beispiel #3
0
        public void LinkGameServerOK()
        {
            Debuger.Log("链接游戏服务器成功");
            //登陆游戏服务器
            CMD_LoginServer LoginServer_ = new CMD_LoginServer()
            {
                Password = m_result.Password,
                RoomID   = m_result.RoomID,
                SeatID   = m_result.SeatID
            };

            KWXFrom.GetIns.GameCmd.SendLoginGameServer(LoginServer_);
            Console.ReadLine();
        }