aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs48
1 files changed, 48 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 0c1d7f2..4107209 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -12339,5 +12339,53 @@ namespace OpenSim.Region.ClientStack.LindenUDP
12339 eq.Enqueue(BuildEvent("RemoveInventoryFolder", 12339 eq.Enqueue(BuildEvent("RemoveInventoryFolder",
12340 llsd), AgentId); 12340 llsd), AgentId);
12341 } 12341 }
12342
12343 public void SendBulkUpdateInventory(InventoryFolderBase[] folders, InventoryItemBase[] items)
12344 {
12345 IEventQueue eq = Scene.RequestModuleInterface<IEventQueue>();
12346
12347 if (eq == null)
12348 {
12349 m_log.DebugFormat("[LLCLIENT]: Null event queue");
12350 return;
12351 }
12352
12353 OSDMap llsd = new OSDMap(3);
12354
12355 OSDMap AgentDataMap = new OSDMap(1);
12356 AgentDataMap.Add("AgentID", OSD.FromUUID(AgentId));
12357 AgentDataMap.Add("SessionID", OSD.FromUUID(SessionId));
12358
12359 OSDArray AgentData = new OSDArray(1);
12360 AgentData.Add(AgentDataMap);
12361
12362 llsd.Add("AgentData", AgentData);
12363
12364 OSDArray FolderData = new OSDArray();
12365
12366 foreach (UUID InventoryFolderBase in folders)
12367 {
12368 OSDMap FolderDataMap = new OSDMap(5);
12369 FolderDataMap.Add("FolderID", OSD.FromUUID(folder.ID));
12370 FolderDataMap.Add("AgentID", OSD.FromUUID(AgentId));
12371 FolderDataMap.Add("ParentID", OSD.FromUUID(folder.ParentID));
12372 FolderDataMap.Add("Type", OSD.FromInteger(folder.Type));
12373 FolderDataMap.Add("Name", OSD.FromString(folder.Name));
12374
12375 FolderData.Add(FolderDataMap);
12376 }
12377
12378 llsd.Add("FolderData", FolderData);
12379
12380 OSDArray ItemData = new OSDArray();
12381
12382 foreach (UUID InventoryItemBase in items)
12383 {
12384 OSDMap ItemDataMap = new OSDMap();
12385 ItemData.Add(DataMap);
12386 }
12387
12388 llsd.Add("ItemData", ItemData);
12389 }
12342 } 12390 }
12343} 12391}