aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorDan Lake2011-10-03 11:55:54 -0700
committerDan Lake2011-10-03 11:55:54 -0700
commite77c919290e166f19e77f3ef040418dd39f2f5bd (patch)
tree05a052d4a97e193cb804313408a03aabe3b4c85a /OpenSim/Region
parentAdd execute permission to runprebuild2010.bat (diff)
downloadopensim-SC_OLD-e77c919290e166f19e77f3ef040418dd39f2f5bd.zip
opensim-SC_OLD-e77c919290e166f19e77f3ef040418dd39f2f5bd.tar.gz
opensim-SC_OLD-e77c919290e166f19e77f3ef040418dd39f2f5bd.tar.bz2
opensim-SC_OLD-e77c919290e166f19e77f3ef040418dd39f2f5bd.tar.xz
Remove usage of Linden packet types from inside Attachments Module and interface
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs7
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs9
-rw-r--r--OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs4
3 files changed, 10 insertions, 10 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index ce2ff86..29dce17 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -6079,9 +6079,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
6079 RezMultipleAttachmentsFromInv handlerRezMultipleAttachments = OnRezMultipleAttachmentsFromInv; 6079 RezMultipleAttachmentsFromInv handlerRezMultipleAttachments = OnRezMultipleAttachmentsFromInv;
6080 if (handlerRezMultipleAttachments != null) 6080 if (handlerRezMultipleAttachments != null)
6081 { 6081 {
6082 RezMultipleAttachmentsFromInvPacket rez = (RezMultipleAttachmentsFromInvPacket)Pack; 6082 List<KeyValuePair<UUID, uint>> rezlist = new List<KeyValuePair<UUID, uint>>();
6083 handlerRezMultipleAttachments(this, rez.HeaderData, 6083 foreach (RezMultipleAttachmentsFromInvPacket.ObjectDataBlock obj in ((RezMultipleAttachmentsFromInvPacket)Pack).ObjectData)
6084 rez.ObjectData); 6084 rezlist.Add(new KeyValuePair<UUID, uint>(obj.ItemID, obj.AttachmentPt));
6085 handlerRezMultipleAttachments(this, rezlist);
6085 } 6086 }
6086 6087
6087 return true; 6088 return true;
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
index 8757251..48695a4 100644
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
@@ -360,8 +360,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
360 360
361 public void RezMultipleAttachmentsFromInventory( 361 public void RezMultipleAttachmentsFromInventory(
362 IClientAPI remoteClient, 362 IClientAPI remoteClient,
363 RezMultipleAttachmentsFromInvPacket.HeaderDataBlock header, 363 List<KeyValuePair<UUID, uint>> rezlist)
364 RezMultipleAttachmentsFromInvPacket.ObjectDataBlock[] objects)
365 { 364 {
366 if (!Enabled) 365 if (!Enabled)
367 return; 366 return;
@@ -380,9 +379,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
380 { 379 {
381// m_log.DebugFormat("[ATTACHMENTS MODULE]: Rezzing multiple attachments from inventory for {0}", sp.Name); 380// m_log.DebugFormat("[ATTACHMENTS MODULE]: Rezzing multiple attachments from inventory for {0}", sp.Name);
382 381
383 foreach (RezMultipleAttachmentsFromInvPacket.ObjectDataBlock obj in objects) 382 foreach (KeyValuePair<UUID, uint> rez in rezlist)
384 { 383 {
385 RezSingleAttachmentFromInventory(sp, obj.ItemID, obj.AttachmentPt); 384 RezSingleAttachmentFromInventory(sp, rez.Key, rez.Value);
386 } 385 }
387 } 386 }
388 } 387 }
@@ -941,4 +940,4 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
941 return item; 940 return item;
942 } 941 }
943 } 942 }
944} \ No newline at end of file 943}
diff --git a/OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs b/OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs
index 5ffbec8..8d3366c 100644
--- a/OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs
+++ b/OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs
@@ -26,6 +26,7 @@
26 */ 26 */
27 27
28using System; 28using System;
29using System.Collections.Generic;
29using OpenMetaverse; 30using OpenMetaverse;
30using OpenMetaverse.Packets; 31using OpenMetaverse.Packets;
31using OpenSim.Framework; 32using OpenSim.Framework;
@@ -104,8 +105,7 @@ namespace OpenSim.Region.Framework.Interfaces
104 /// <param name="objects"></param> 105 /// <param name="objects"></param>
105 void RezMultipleAttachmentsFromInventory( 106 void RezMultipleAttachmentsFromInventory(
106 IClientAPI remoteClient, 107 IClientAPI remoteClient,
107 RezMultipleAttachmentsFromInvPacket.HeaderDataBlock header, 108 List<KeyValuePair<UUID, uint>> rezlist);
108 RezMultipleAttachmentsFromInvPacket.ObjectDataBlock[] objects);
109 109
110 /// <summary> 110 /// <summary>
111 /// Detach an object from the avatar. 111 /// Detach an object from the avatar.