示例#1
0
文件: Chat.cs 项目: chuizi2008/game
 public static void SendMsg_MSG_CHAT(TcpHandle client, string info)
 {
     WriteMsg msg = new WriteMsg((UInt16)MsgIds.MSG_CHAT);
     msg.WriteUInt16(1);
     msg.WriteString(info);
     client.Send(msg);
 }
示例#2
0
文件: Login.cs 项目: chuizi2008/game
 public static void SendMsg_MSG_LOGIN(TcpHandle tcp)
 {
     WriteMsg msg = new WriteMsg((UInt16)MsgIds.MSG_LOGIN);
     msg.WriteString(tcp.gameState.Account);
     msg.WriteString(tcp.gameState.LoginKey);
     tcp.Send(msg);
 }