Beispiel #1
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            _playerIndex = 0;
            _opptNick = "";

            ChatMsg chat = new ChatMsg();
            chat.chatContext = txtIn.Text;
            _connector.SendMessage<ChatMsg>((int)MessageType.MSG_TYPE_SEARCH_A_GAME_REQ, chat);
        }
Beispiel #2
0
 private void btnSend_Click(object sender, EventArgs e)
 {
     ChatMsg chat = new ChatMsg();
     chat.userId = _playerInfo.userId;
     chat.uName = _playerInfo.uName;
     chat.chatContext = String.Format("{0}:{1}", _playerInfo.uName, txtMsg.Text);
     _connector.SendMessage<ChatMsg>((int)MessageType.MSG_TYPE_CHAT_MESSGAE_REQ, chat);
 }