diff options
author | Brian McBee | 2007-12-08 20:41:37 +0000 |
---|---|---|
committer | Brian McBee | 2007-12-08 20:41:37 +0000 |
commit | 383eccc543e402710bb48802c6951b94d185a6a8 (patch) | |
tree | 17b1730a5e6bc3783d54e3cf0166da2196f8a9a5 /OpenSim/Region | |
parent | Allow moving, deleting, and restoring objects in inventory. (diff) | |
download | opensim-SC-383eccc543e402710bb48802c6951b94d185a6a8.zip opensim-SC-383eccc543e402710bb48802c6951b94d185a6a8.tar.gz opensim-SC-383eccc543e402710bb48802c6951b94d185a6a8.tar.bz2 opensim-SC-383eccc543e402710bb48802c6951b94d185a6a8.tar.xz |
hackish code to allow emptying of trash. This really should be done on the inventory server, and not from the region.
Also: it appeared to work the first try, so I have probably done something horribly wrong.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.cs | 8 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 3 | ||||
-rw-r--r-- | OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs | 1 |
3 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index e40c689..7b6ea97 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs | |||
@@ -430,6 +430,7 @@ namespace OpenSim.Region.ClientStack | |||
430 | public event CreateNewInventoryItem OnCreateNewInventoryItem; | 430 | public event CreateNewInventoryItem OnCreateNewInventoryItem; |
431 | public event CreateInventoryFolder OnCreateNewInventoryFolder; | 431 | public event CreateInventoryFolder OnCreateNewInventoryFolder; |
432 | public event FetchInventoryDescendents OnFetchInventoryDescendents; | 432 | public event FetchInventoryDescendents OnFetchInventoryDescendents; |
433 | public event PurgeInventoryDescendents OnPurgeInventoryDescendents; | ||
433 | public event FetchInventory OnFetchInventory; | 434 | public event FetchInventory OnFetchInventory; |
434 | public event RequestTaskInventory OnRequestTaskInventory; | 435 | public event RequestTaskInventory OnRequestTaskInventory; |
435 | public event UpdateInventoryItem OnUpdateInventoryItem; | 436 | public event UpdateInventoryItem OnUpdateInventoryItem; |
@@ -2827,6 +2828,13 @@ namespace OpenSim.Region.ClientStack | |||
2827 | Fetch.InventoryData.SortOrder); | 2828 | Fetch.InventoryData.SortOrder); |
2828 | } | 2829 | } |
2829 | break; | 2830 | break; |
2831 | case PacketType.PurgeInventoryDescendents: | ||
2832 | if (OnPurgeInventoryDescendents != null) | ||
2833 | { | ||
2834 | PurgeInventoryDescendentsPacket Purge = (PurgeInventoryDescendentsPacket)Pack; | ||
2835 | OnPurgeInventoryDescendents(this, Purge.InventoryData.FolderID); | ||
2836 | } | ||
2837 | break; | ||
2830 | case PacketType.UpdateInventoryItem: | 2838 | case PacketType.UpdateInventoryItem: |
2831 | UpdateInventoryItemPacket update = (UpdateInventoryItemPacket) Pack; | 2839 | UpdateInventoryItemPacket update = (UpdateInventoryItemPacket) Pack; |
2832 | if (OnUpdateInventoryItem != null) | 2840 | if (OnUpdateInventoryItem != null) |
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index eb8a6a2..6bdb8a3 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -971,7 +971,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
971 | 971 | ||
972 | client.OnCreateNewInventoryItem += CreateNewInventoryItem; | 972 | client.OnCreateNewInventoryItem += CreateNewInventoryItem; |
973 | client.OnCreateNewInventoryFolder += CommsManager.UserProfileCacheService.HandleCreateInventoryFolder; | 973 | client.OnCreateNewInventoryFolder += CommsManager.UserProfileCacheService.HandleCreateInventoryFolder; |
974 | client.OnFetchInventoryDescendents += CommsManager.UserProfileCacheService.HandleFecthInventoryDescendents; | 974 | client.OnFetchInventoryDescendents += CommsManager.UserProfileCacheService.HandleFetchInventoryDescendents; |
975 | client.OnPurgeInventoryDescendents += CommsManager.UserProfileCacheService.HandlePurgeInventoryDescendents; | ||
975 | client.OnRequestTaskInventory += RequestTaskInventory; | 976 | client.OnRequestTaskInventory += RequestTaskInventory; |
976 | client.OnFetchInventory += CommsManager.UserProfileCacheService.HandleFetchInventory; | 977 | client.OnFetchInventory += CommsManager.UserProfileCacheService.HandleFetchInventory; |
977 | client.OnUpdateInventoryItem += UpdateInventoryItemAsset; | 978 | client.OnUpdateInventoryItem += UpdateInventoryItemAsset; |
diff --git a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs index 31ce53e..87e66ab 100644 --- a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs +++ b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs | |||
@@ -107,6 +107,7 @@ namespace SimpleApp | |||
107 | public event CreateNewInventoryItem OnCreateNewInventoryItem; | 107 | public event CreateNewInventoryItem OnCreateNewInventoryItem; |
108 | public event CreateInventoryFolder OnCreateNewInventoryFolder; | 108 | public event CreateInventoryFolder OnCreateNewInventoryFolder; |
109 | public event FetchInventoryDescendents OnFetchInventoryDescendents; | 109 | public event FetchInventoryDescendents OnFetchInventoryDescendents; |
110 | public event PurgeInventoryDescendents OnPurgeInventoryDescendents; | ||
110 | public event FetchInventory OnFetchInventory; | 111 | public event FetchInventory OnFetchInventory; |
111 | public event RequestTaskInventory OnRequestTaskInventory; | 112 | public event RequestTaskInventory OnRequestTaskInventory; |
112 | public event UpdateInventoryItem OnUpdateInventoryItem; | 113 | public event UpdateInventoryItem OnUpdateInventoryItem; |