aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP
diff options
context:
space:
mode:
authorTom2010-08-06 11:39:10 -0700
committerTom2010-08-06 11:39:10 -0700
commit330343505ca2d6d109e89b4767f4351ab9bec91d (patch)
treef4aea7182e3ca13f23a94b4b47499937bb473cbb /OpenSim/Region/ClientStack/LindenUDP
parentMerge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/ca... (diff)
downloadopensim-SC_OLD-330343505ca2d6d109e89b4767f4351ab9bec91d.zip
opensim-SC_OLD-330343505ca2d6d109e89b4767f4351ab9bec91d.tar.gz
opensim-SC_OLD-330343505ca2d6d109e89b4767f4351ab9bec91d.tar.bz2
opensim-SC_OLD-330343505ca2d6d109e89b4767f4351ab9bec91d.tar.xz
Implement CreateNewOutfitAttachments. This addresses mantis #199.
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index 0b8b95b..cd7c11b 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -154,6 +154,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
154 public event RequestTaskInventory OnRequestTaskInventory; 154 public event RequestTaskInventory OnRequestTaskInventory;
155 public event UpdateInventoryItem OnUpdateInventoryItem; 155 public event UpdateInventoryItem OnUpdateInventoryItem;
156 public event CopyInventoryItem OnCopyInventoryItem; 156 public event CopyInventoryItem OnCopyInventoryItem;
157 public event MoveItemsAndLeaveCopy OnMoveItemsAndLeaveCopy;
157 public event MoveInventoryItem OnMoveInventoryItem; 158 public event MoveInventoryItem OnMoveInventoryItem;
158 public event RemoveInventoryItem OnRemoveInventoryItem; 159 public event RemoveInventoryItem OnRemoveInventoryItem;
159 public event RemoveInventoryFolder OnRemoveInventoryFolder; 160 public event RemoveInventoryFolder OnRemoveInventoryFolder;
@@ -4840,6 +4841,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
4840 AddLocalPacketHandler(PacketType.TransferAbort, HandleTransferAbort, false); 4841 AddLocalPacketHandler(PacketType.TransferAbort, HandleTransferAbort, false);
4841 AddLocalPacketHandler(PacketType.MuteListRequest, HandleMuteListRequest, false); 4842 AddLocalPacketHandler(PacketType.MuteListRequest, HandleMuteListRequest, false);
4842 AddLocalPacketHandler(PacketType.UseCircuitCode, HandleUseCircuitCode); 4843 AddLocalPacketHandler(PacketType.UseCircuitCode, HandleUseCircuitCode);
4844 AddLocalPacketHandler(PacketType.CreateNewOutfitAttachments, HandleCreateNewOutfitAttachments);
4843 AddLocalPacketHandler(PacketType.AgentHeightWidth, HandleAgentHeightWidth, false); 4845 AddLocalPacketHandler(PacketType.AgentHeightWidth, HandleAgentHeightWidth, false);
4844 AddLocalPacketHandler(PacketType.InventoryDescendents, HandleInventoryDescendents); 4846 AddLocalPacketHandler(PacketType.InventoryDescendents, HandleInventoryDescendents);
4845 AddLocalPacketHandler(PacketType.DirPlacesQuery, HandleDirPlacesQuery); 4847 AddLocalPacketHandler(PacketType.DirPlacesQuery, HandleDirPlacesQuery);
@@ -9349,6 +9351,37 @@ namespace OpenSim.Region.ClientStack.LindenUDP
9349 { 9351 {
9350 return true; 9352 return true;
9351 } 9353 }
9354
9355 private bool HandleCreateNewOutfitAttachments(IClientAPI sender, Packet Pack)
9356 {
9357 CreateNewOutfitAttachmentsPacket packet = (CreateNewOutfitAttachmentsPacket)Pack;
9358
9359 #region Packet Session and User Check
9360 if (m_checkPackets)
9361 {
9362 if (packet.AgentData.SessionID != SessionId ||
9363 packet.AgentData.AgentID != AgentId)
9364 return true;
9365 }
9366 #endregion
9367 MoveItemsAndLeaveCopy handlerMoveItemsAndLeaveCopy = null;
9368 List<InventoryItemBase> items = new List<InventoryItemBase>();
9369 foreach (CreateNewOutfitAttachmentsPacket.ObjectDataBlock n in packet.ObjectData)
9370 {
9371 InventoryItemBase b = new InventoryItemBase();
9372 b.ID = n.OldItemID;
9373 b.Folder = n.OldFolderID;
9374 items.Add(b);
9375 }
9376
9377 handlerMoveItemsAndLeaveCopy = OnMoveItemsAndLeaveCopy;
9378 if (handlerMoveItemsAndLeaveCopy != null)
9379 {
9380 handlerMoveItemsAndLeaveCopy(this, items, packet.HeaderData.NewFolderID);
9381 }
9382
9383 return true;
9384 }
9352 9385
9353 private bool HandleAgentHeightWidth(IClientAPI sender, Packet Pack) 9386 private bool HandleAgentHeightWidth(IClientAPI sender, Packet Pack)
9354 { 9387 {