示例#1
0
 public static Packet CreateWorldMessage(WorldMessageTypes pType, string pMessage)
 {
     var packet = new Packet(SH25Type.WorldMessage);
     packet.WriteByte((byte)pType);
     packet.WriteStringLen(pMessage, true);
     return packet;
 }
示例#2
0
        public static Packet CreateWorldMessage(WorldMessageTypes pType, string pMessage)
        {
            var packet = new Packet(SH25Type.WorldMessage);

            packet.WriteByte((byte)pType);
            packet.WriteStringLen(pMessage, true);
            return(packet);
        }
示例#3
0
 public static void SendWorldMessage(WorldMessageTypes type, string message, string to = "")
 {
     using (var packet = new InterPacket(InterHeader.WORLDMSG))
     {
         packet.WriteStringLen(message);
         packet.WriteByte((byte)type);
         packet.WriteBool(to != "");
         if (to != "")
         {
             packet.WriteStringLen(to);
         }
         WorldConnector.Instance.SendPacket(packet);
     }
 }
示例#4
0
 public static void SendWorldMessage(WorldMessageTypes type, string message, string to = "")
 {
     using (var packet = new InterPacket(InterHeader.Worldmsg))
     {
         packet.WriteStringLen(message);
         packet.WriteByte((byte)type);
         packet.WriteBool(to != "");
         if (to != "")
         {
             packet.WriteStringLen(to);
         }
         WorldConnector.Instance.SendPacket(packet);
     }
 }