Exemplo n.º 1
0
 public static void BroadcastPacket(ASendPacket packet)
 {
     foreach (Connection connection in GameServer.Server.Connections.Select(p => p.Value))
     {
         SendPacket(connection, packet);
     }
 }
Exemplo n.º 2
0
 public static void SendPacket(Connection con, ASendPacket packet)
 {
     if (con.Client.CommunicationState == Hik.Communication.Scs.Communication.CommunicationStates.Connected && con.IsValid)
         packet.Send(con);
 }