Example #1
0
 public SendMessageToChat00(ChatController.ChatType chatType, string message, int val1, int val2)
 {
     _type    = (int)chatType;
     _message = message;
     _target  = "no";
     _val1    = val1;
     _val2    = val2;
 }
Example #2
0
 public override void SetData(int packetId, byte[] buffer)
 {
     using (var ms = new MemoryStream(buffer, false))
     {
         ChatController.ChatType type = (ChatController.ChatType)ReadInt8(ms);
         string playerName            = ReadString(ms);
         string text = ReadString(ms);
         ChatController.instance.AddMessage(type, playerName, text);
         CheckEndPacket__(packetId, ms);
     }
 }
Example #3
0
 public SendMessageToChat00(ChatController.ChatType chatType, string message, string target)
 {
     _type    = (int)chatType;
     _message = message;
     _target  = target;
 }