aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Framework/AgentInventory.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim.Framework/AgentInventory.cs')
-rw-r--r--OpenSim.Framework/AgentInventory.cs17
1 files changed, 16 insertions, 1 deletions
diff --git a/OpenSim.Framework/AgentInventory.cs b/OpenSim.Framework/AgentInventory.cs
index 8032455..f1f5847 100644
--- a/OpenSim.Framework/AgentInventory.cs
+++ b/OpenSim.Framework/AgentInventory.cs
@@ -2,6 +2,7 @@ using System;
2using System.Collections.Generic; 2using System.Collections.Generic;
3using System.Text; 3using System.Text;
4using libsecondlife; 4using libsecondlife;
5using libsecondlife.Packets;
5using OpenSim.Framework.Assets; 6using OpenSim.Framework.Assets;
6 7
7namespace OpenSim.Framework.Inventory 8namespace OpenSim.Framework.Inventory
@@ -105,7 +106,7 @@ namespace OpenSim.Framework.Inventory
105 return false; 106 return false;
106 } 107 }
107 108
108 public bool UpdateItem(LLUUID itemID, AssetBase asset) 109 public bool UpdateItemAsset(LLUUID itemID, AssetBase asset)
109 { 110 {
110 if(this.InventoryItems.ContainsKey(itemID)) 111 if(this.InventoryItems.ContainsKey(itemID))
111 { 112 {
@@ -117,6 +118,20 @@ namespace OpenSim.Framework.Inventory
117 return true; 118 return true;
118 } 119 }
119 120
121 public bool UpdateItemDetails(LLUUID itemID, UpdateInventoryItemPacket.InventoryDataBlock packet)
122 {
123 Console.WriteLine("updating inventory item details");
124 if (this.InventoryItems.ContainsKey(itemID))
125 {
126 Console.WriteLine("changing name to "+ Helpers.FieldToString(packet.Name));
127 InventoryItem Item = this.InventoryItems[itemID];
128 Item.Name = Helpers.FieldToString(packet.Name);
129 Console.WriteLine("updated inventory item " + itemID.ToStringHyphenated());
130 //TODO need to update the rest of the info
131 }
132 return true;
133 }
134
120 public LLUUID AddToInventory(LLUUID folderID, AssetBase asset) 135 public LLUUID AddToInventory(LLUUID folderID, AssetBase asset)
121 { 136 {
122 if (this.InventoryFolders.ContainsKey(folderID)) 137 if (this.InventoryFolders.ContainsKey(folderID))