diff options
author | Justin Clarke Casey | 2008-10-15 16:52:48 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-10-15 16:52:48 +0000 |
commit | 87e85489f3aa1a2f5d827cfc4941cf5fbfc45b07 (patch) | |
tree | b2ac85ff9ef6769c84b692d5ef2d0dfaf41c0483 /OpenSim | |
parent | * minor: disable a couple of other lines of image not found, which are pointl... (diff) | |
download | opensim-SC-87e85489f3aa1a2f5d827cfc4941cf5fbfc45b07.zip opensim-SC-87e85489f3aa1a2f5d827cfc4941cf5fbfc45b07.tar.gz opensim-SC-87e85489f3aa1a2f5d827cfc4941cf5fbfc45b07.tar.bz2 opensim-SC-87e85489f3aa1a2f5d827cfc4941cf5fbfc45b07.tar.xz |
* refactor: move viewer effect packet into LLClientView
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/ClientManager.cs | 9 | ||||
-rw-r--r-- | OpenSim/Framework/IClientAPI.cs | 1 | ||||
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 12 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs | 4 |
5 files changed, 22 insertions, 8 deletions
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 | |||
205 | { | 205 | { |
206 | if (LocalClients[i].AgentId != sender.AgentId) | 206 | if (LocalClients[i].AgentId != sender.AgentId) |
207 | { | 207 | { |
208 | ViewerEffectPacket packet = (ViewerEffectPacket)PacketPool.Instance.GetPacket(PacketType.ViewerEffect); | 208 | LocalClients[i].SendViewerEffect(effectBlockArray); |
209 | packet.Effect = effectBlockArray; | ||
210 | |||
211 | packet.AgentData.AgentID = LocalClients[i].AgentId; | ||
212 | packet.AgentData.SessionID = LocalClients[i].SessionId; | ||
213 | packet.Header.Reliable = false; | ||
214 | packet.Header.Zerocoded = true; | ||
215 | LocalClients[i].OutPacket(packet, ThrottleOutPacketType.Task); | ||
216 | } | 209 | } |
217 | } | 210 | } |
218 | } | 211 | } |
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 | |||
755 | bool AddMoney(int debit); | 755 | bool AddMoney(int debit); |
756 | 756 | ||
757 | void SendSunPos(Vector3 sunPos, Vector3 sunVel, ulong CurrentTime, uint SecondsPerSunCycle, uint SecondsPerYear, float OrbitalPosition); | 757 | void SendSunPos(Vector3 sunPos, Vector3 sunVel, ulong CurrentTime, uint SecondsPerSunCycle, uint SecondsPerYear, float OrbitalPosition); |
758 | void SendViewerEffect(ViewerEffectPacket.EffectBlock[] effectBlocks); | ||
758 | void SendViewerTime(int phase); | 759 | void SendViewerTime(int phase); |
759 | UUID GetDefaultAnimation(string name); | 760 | UUID GetDefaultAnimation(string name); |
760 | 761 | ||
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index b826a12..251ba78 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -2192,6 +2192,18 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
2192 | OutPacket(viewertime, ThrottleOutPacketType.Task); | 2192 | OutPacket(viewertime, ThrottleOutPacketType.Task); |
2193 | */ | 2193 | */ |
2194 | } | 2194 | } |
2195 | |||
2196 | public void SendViewerEffect(ViewerEffectPacket.EffectBlock[] effectBlocks) | ||
2197 | { | ||
2198 | ViewerEffectPacket packet = (ViewerEffectPacket)PacketPool.Instance.GetPacket(PacketType.ViewerEffect); | ||
2199 | packet.Effect = effectBlocks; | ||
2200 | |||
2201 | packet.AgentData.AgentID = AgentId; | ||
2202 | packet.AgentData.SessionID = SessionId; | ||
2203 | packet.Header.Reliable = false; | ||
2204 | packet.Header.Zerocoded = true; | ||
2205 | OutPacket(packet, ThrottleOutPacketType.Task); | ||
2206 | } | ||
2195 | 2207 | ||
2196 | public void SendAvatarProperties(UUID avatarID, string aboutText, string bornOn, Byte[] charterMember, | 2208 | public void SendAvatarProperties(UUID avatarID, string aboutText, string bornOn, Byte[] charterMember, |
2197 | string flAbout, uint flags, UUID flImageID, UUID imageID, string profileURL, | 2209 | string flAbout, uint flags, UUID flImageID, UUID imageID, string profileURL, |
diff --git a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs index 2135974..86f3288 100644 --- a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs | |||
@@ -744,6 +744,10 @@ namespace OpenSim.Region.Environment.Modules.World.NPC | |||
744 | { | 744 | { |
745 | } | 745 | } |
746 | 746 | ||
747 | public void SendViewerEffect(ViewerEffectPacket.EffectBlock[] effectBlocks) | ||
748 | { | ||
749 | } | ||
750 | |||
747 | public void SendViewerTime(int phase) | 751 | public void SendViewerTime(int phase) |
748 | { | 752 | { |
749 | } | 753 | } |
diff --git a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs index b17436c..663e768 100644 --- a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs +++ b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs | |||
@@ -739,6 +739,10 @@ namespace OpenSim.Region.Examples.SimpleModule | |||
739 | public void SendSunPos(Vector3 sunPos, Vector3 sunVel, ulong time, uint dlen, uint ylen, float phase) | 739 | public void SendSunPos(Vector3 sunPos, Vector3 sunVel, ulong time, uint dlen, uint ylen, float phase) |
740 | { | 740 | { |
741 | } | 741 | } |
742 | |||
743 | public void SendViewerEffect(ViewerEffectPacket.EffectBlock[] effectBlocks) | ||
744 | { | ||
745 | } | ||
742 | 746 | ||
743 | public void SendViewerTime(int phase) | 747 | public void SendViewerTime(int phase) |
744 | { | 748 | { |