Remove usage of Linden packet types from inside Attachments Module and interface
parent
31125a5fd2
commit
e77c919290
|
@ -53,8 +53,7 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
public delegate ISceneEntity RezSingleAttachmentFromInv(IClientAPI remoteClient, UUID itemID, uint AttachmentPt);
|
public delegate ISceneEntity RezSingleAttachmentFromInv(IClientAPI remoteClient, UUID itemID, uint AttachmentPt);
|
||||||
|
|
||||||
public delegate void RezMultipleAttachmentsFromInv(IClientAPI remoteClient, RezMultipleAttachmentsFromInvPacket.HeaderDataBlock header,
|
public delegate void RezMultipleAttachmentsFromInv(IClientAPI remoteClient, List<KeyValuePair<UUID, uint>> rezlist );
|
||||||
RezMultipleAttachmentsFromInvPacket.ObjectDataBlock[] objects);
|
|
||||||
|
|
||||||
public delegate void ObjectAttach(
|
public delegate void ObjectAttach(
|
||||||
IClientAPI remoteClient, uint objectLocalID, uint AttachmentPt, bool silent);
|
IClientAPI remoteClient, uint objectLocalID, uint AttachmentPt, bool silent);
|
||||||
|
|
|
@ -6079,9 +6079,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
RezMultipleAttachmentsFromInv handlerRezMultipleAttachments = OnRezMultipleAttachmentsFromInv;
|
RezMultipleAttachmentsFromInv handlerRezMultipleAttachments = OnRezMultipleAttachmentsFromInv;
|
||||||
if (handlerRezMultipleAttachments != null)
|
if (handlerRezMultipleAttachments != null)
|
||||||
{
|
{
|
||||||
RezMultipleAttachmentsFromInvPacket rez = (RezMultipleAttachmentsFromInvPacket)Pack;
|
List<KeyValuePair<UUID, uint>> rezlist = new List<KeyValuePair<UUID, uint>>();
|
||||||
handlerRezMultipleAttachments(this, rez.HeaderData,
|
foreach (RezMultipleAttachmentsFromInvPacket.ObjectDataBlock obj in ((RezMultipleAttachmentsFromInvPacket)Pack).ObjectData)
|
||||||
rez.ObjectData);
|
rezlist.Add(new KeyValuePair<UUID, uint>(obj.ItemID, obj.AttachmentPt));
|
||||||
|
handlerRezMultipleAttachments(this, rezlist);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -360,8 +360,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
|
||||||
|
|
||||||
public void RezMultipleAttachmentsFromInventory(
|
public void RezMultipleAttachmentsFromInventory(
|
||||||
IClientAPI remoteClient,
|
IClientAPI remoteClient,
|
||||||
RezMultipleAttachmentsFromInvPacket.HeaderDataBlock header,
|
List<KeyValuePair<UUID, uint>> rezlist)
|
||||||
RezMultipleAttachmentsFromInvPacket.ObjectDataBlock[] objects)
|
|
||||||
{
|
{
|
||||||
if (!Enabled)
|
if (!Enabled)
|
||||||
return;
|
return;
|
||||||
|
@ -380,9 +379,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
|
||||||
{
|
{
|
||||||
// m_log.DebugFormat("[ATTACHMENTS MODULE]: Rezzing multiple attachments from inventory for {0}", sp.Name);
|
// m_log.DebugFormat("[ATTACHMENTS MODULE]: Rezzing multiple attachments from inventory for {0}", sp.Name);
|
||||||
|
|
||||||
foreach (RezMultipleAttachmentsFromInvPacket.ObjectDataBlock obj in objects)
|
foreach (KeyValuePair<UUID, uint> rez in rezlist)
|
||||||
{
|
{
|
||||||
RezSingleAttachmentFromInventory(sp, obj.ItemID, obj.AttachmentPt);
|
RezSingleAttachmentFromInventory(sp, rez.Key, rez.Value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using OpenMetaverse.Packets;
|
using OpenMetaverse.Packets;
|
||||||
using OpenSim.Framework;
|
using OpenSim.Framework;
|
||||||
|
@ -104,8 +105,7 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||||
/// <param name="objects"></param>
|
/// <param name="objects"></param>
|
||||||
void RezMultipleAttachmentsFromInventory(
|
void RezMultipleAttachmentsFromInventory(
|
||||||
IClientAPI remoteClient,
|
IClientAPI remoteClient,
|
||||||
RezMultipleAttachmentsFromInvPacket.HeaderDataBlock header,
|
List<KeyValuePair<UUID, uint>> rezlist);
|
||||||
RezMultipleAttachmentsFromInvPacket.ObjectDataBlock[] objects);
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Detach an object from the avatar.
|
/// Detach an object from the avatar.
|
||||||
|
|
Loading…
Reference in New Issue