Esempio n. 1
0
        private void ForwardPacketToOtherPlayers(Packet packet, String sendingPlayerId)
        {
            if (packetForwardBlacklist.Contains(packet.GetType()))
            {
                return;
            }

            foreach (Player player in playersById.values())
            {
                if (player.Id != sendingPlayerId && player.Connection.Open)
                {
                    player.Connection.SendPacket(packet, new AsyncCallback(SendCompleted));
                }
            }
        }