예제 #1
0
 public static new ChatMessage decode(ref Lidgren.Network.NetIncomingMessage msg)
 {
     ChatMessage cm = new ChatMessage (Packet.decode (ref msg).ClientId);
     cm.Pseudo = msg.ReadString ();
     cm.Message = msg.ReadString ();
     return cm;
 }
예제 #2
0
파일: Chat.cs 프로젝트: CyrilPaulus/2dThing
 private void sendMessage()
 {
     ChatMessage cm = new ChatMessage(client.ClientId);
     cm.Pseudo = client.Pseudo;
     cm.Message = toWrite;
     client.SendPacket(cm, true);
     toWrite = "";
 }