aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
diff options
context:
space:
mode:
authorSean Dague2008-04-07 23:15:35 +0000
committerSean Dague2008-04-07 23:15:35 +0000
commitf43681510725f5b95fcb864a1f3e4b744fcaf992 (patch)
tree2d34caa75488d1c608d1a21b4888cb0f264a6cba /OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
parentneeded to add 4 characters to support the dashes (diff)
downloadopensim-SC_OLD-f43681510725f5b95fcb864a1f3e4b744fcaf992.zip
opensim-SC_OLD-f43681510725f5b95fcb864a1f3e4b744fcaf992.tar.gz
opensim-SC_OLD-f43681510725f5b95fcb864a1f3e4b744fcaf992.tar.bz2
opensim-SC_OLD-f43681510725f5b95fcb864a1f3e4b744fcaf992.tar.xz
Refactor InventoryItemBase to do the following:
* wrap fields as Properties * rename some fields/properties to more sensible names * set style to PropName to match more standard C# approach
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
index a450a3d..3f14fff 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
@@ -178,7 +178,7 @@ namespace OpenSim.Region.Environment.Scenes
178 public bool AddInventoryItem(IClientAPI remoteClient, uint localID, 178 public bool AddInventoryItem(IClientAPI remoteClient, uint localID,
179 InventoryItemBase item, LLUUID copyItemID) 179 InventoryItemBase item, LLUUID copyItemID)
180 { 180 {
181 LLUUID newItemId = (copyItemID != LLUUID.Zero) ? copyItemID : item.inventoryID; 181 LLUUID newItemId = (copyItemID != LLUUID.Zero) ? copyItemID : item.ID;
182 182
183 SceneObjectPart part = GetChildPart(localID); 183 SceneObjectPart part = GetChildPart(localID);
184 if (part != null) 184 if (part != null)
@@ -186,13 +186,13 @@ namespace OpenSim.Region.Environment.Scenes
186 TaskInventoryItem taskItem = new TaskInventoryItem(); 186 TaskInventoryItem taskItem = new TaskInventoryItem();
187 187
188 taskItem.ItemID = newItemId; 188 taskItem.ItemID = newItemId;
189 taskItem.AssetID = item.assetID; 189 taskItem.AssetID = item.AssetID;
190 taskItem.Name = item.inventoryName; 190 taskItem.Name = item.Name;
191 taskItem.Description = item.inventoryDescription; 191 taskItem.Description = item.Description;
192 taskItem.OwnerID = item.avatarID; 192 taskItem.OwnerID = item.Owner;
193 taskItem.CreatorID = item.creatorsID; 193 taskItem.CreatorID = item.Creator;
194 taskItem.Type = item.assetType; 194 taskItem.Type = item.AssetType;
195 taskItem.InvType = item.invType; 195 taskItem.InvType = item.InvType;
196 part.AddInventoryItem(taskItem); 196 part.AddInventoryItem(taskItem);
197 197
198 return true; 198 return true;