* refactor: move viewer effect packet into LLClientView

This commit is contained in:
Justin Clarke Casey
2008-10-15 16:52:48 +00:00
parent eb07a40870
commit 87e85489f3
5 changed files with 22 additions and 8 deletions

View File

@@ -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);
}
}
}

View File

@@ -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);