From 87e85489f3aa1a2f5d827cfc4941cf5fbfc45b07 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 15 Oct 2008 16:52:48 +0000 Subject: * refactor: move viewer effect packet into LLClientView --- OpenSim/Framework/ClientManager.cs | 9 +-------- OpenSim/Framework/IClientAPI.cs | 1 + 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/ClientManager.cs b/OpenSim/Framework/ClientManager.cs index 68c4dea..4ac9b3c 100644 --- a/OpenSim/Framework/ClientManager.cs +++ b/OpenSim/Framework/ClientManager.cs @@ -205,14 +205,7 @@ namespace OpenSim.Framework { if (LocalClients[i].AgentId != sender.AgentId) { - ViewerEffectPacket packet = (ViewerEffectPacket)PacketPool.Instance.GetPacket(PacketType.ViewerEffect); - packet.Effect = effectBlockArray; - - packet.AgentData.AgentID = LocalClients[i].AgentId; - packet.AgentData.SessionID = LocalClients[i].SessionId; - packet.Header.Reliable = false; - packet.Header.Zerocoded = true; - LocalClients[i].OutPacket(packet, ThrottleOutPacketType.Task); + LocalClients[i].SendViewerEffect(effectBlockArray); } } } diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs index d5d4c34..89fc0af 100644 --- a/OpenSim/Framework/IClientAPI.cs +++ b/OpenSim/Framework/IClientAPI.cs @@ -755,6 +755,7 @@ namespace OpenSim.Framework bool AddMoney(int debit); void SendSunPos(Vector3 sunPos, Vector3 sunVel, ulong CurrentTime, uint SecondsPerSunCycle, uint SecondsPerYear, float OrbitalPosition); + void SendViewerEffect(ViewerEffectPacket.EffectBlock[] effectBlocks); void SendViewerTime(int phase); UUID GetDefaultAnimation(string name); -- cgit v1.1