Exemplo n.º 1
0
 public static void SendComplexUnionData(Union union, int to)
 {
     if (Main.netMode == 2)
     {
         ModPacket p = ServerSideCharacter2.Instance.GetPacket();
         p.Write((int)SSCMessageType.UnionInfoComplex);
         var tmp = JsonConvert.SerializeObject(union.GetVerbose(to), Formatting.None);
         p.Write(tmp);
         p.Send(to);
     }
 }