Beispiel #1
0
 public void SendToAuthenticated <T>(T packet) where T : IPacketStruct
 {
     foreach (KeyValuePair <int, ServerClient> pair in Clients)
     {
         ServerClient client = pair.Value;
         if (client.State == ServerClient.ClientState.Authenticated)
         {
             PacketTransport.SendPacket(client.Peer, packet);
         }
     }
 }
Beispiel #2
0
 public void SendPacket<T>(T packet) where T : IPacketStruct
 {
     PacketTransport.SendPacket(Peer, packet);
 }
Beispiel #3
0
 public void SendPacket <T>(T packet) where T : IPacketStruct
 {
     PacketTransport.SendPacket(netClient.FirstPeer, packet);
 }