public void AddPacketToParty(Players.Parties.Party party, TcpPacket packet) { if (party != null) { if (!cachingEnabled) { foreach (Client i in party.GetOnlineMemberClients()) { if (i.IsPlaying()) { AddPacket(i, packet); } } } else { hitListCache.AddCacheItem(new object[] { PacketHitListTargets.Party, party, packet }); } } }
public static void SendDataToParty(Players.Parties.Party party, IPacket packet) { foreach (Client i in party.GetOnlineMemberClients()) { if (i.IsPlaying()) { SendDataTo(i, packet); } } }