diff options
author | Brian McBee | 2007-12-11 03:51:32 +0000 |
---|---|---|
committer | Brian McBee | 2007-12-11 03:51:32 +0000 |
commit | 16903ec488f53fe1bab6b4c4408dde31d03367ff (patch) | |
tree | de93756adda1b308fcb9606cc703bf90e11ff112 /OpenSim/Region | |
parent | refactor SunModule a bit to make more sensible (diff) | |
download | opensim-SC-16903ec488f53fe1bab6b4c4408dde31d03367ff.zip opensim-SC-16903ec488f53fe1bab6b4c4408dde31d03367ff.tar.gz opensim-SC-16903ec488f53fe1bab6b4c4408dde31d03367ff.tar.bz2 opensim-SC-16903ec488f53fe1bab6b4c4408dde31d03367ff.tar.xz |
Implementing updateinventoryfolder: Should now be able to rename folders in inventory
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.cs | 14 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 1 | ||||
-rw-r--r-- | OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs | 1 |
3 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index db25ee6..a94c5da 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs | |||
@@ -430,6 +430,7 @@ namespace OpenSim.Region.ClientStack | |||
430 | 430 | ||
431 | public event CreateNewInventoryItem OnCreateNewInventoryItem; | 431 | public event CreateNewInventoryItem OnCreateNewInventoryItem; |
432 | public event CreateInventoryFolder OnCreateNewInventoryFolder; | 432 | public event CreateInventoryFolder OnCreateNewInventoryFolder; |
433 | public event UpdateInventoryFolder OnUpdateInventoryFolder; | ||
433 | public event FetchInventoryDescendents OnFetchInventoryDescendents; | 434 | public event FetchInventoryDescendents OnFetchInventoryDescendents; |
434 | public event PurgeInventoryDescendents OnPurgeInventoryDescendents; | 435 | public event PurgeInventoryDescendents OnPurgeInventoryDescendents; |
435 | public event FetchInventory OnFetchInventory; | 436 | public event FetchInventory OnFetchInventory; |
@@ -2809,6 +2810,19 @@ namespace OpenSim.Region.ClientStack | |||
2809 | invFolder.FolderData.ParentID); | 2810 | invFolder.FolderData.ParentID); |
2810 | } | 2811 | } |
2811 | break; | 2812 | break; |
2813 | case PacketType.UpdateInventoryFolder: | ||
2814 | if (OnUpdateInventoryFolder != null) | ||
2815 | { | ||
2816 | UpdateInventoryFolderPacket invFolder = (UpdateInventoryFolderPacket)Pack; | ||
2817 | for (int i = 0; i < invFolder.FolderData.Length; i++) | ||
2818 | { | ||
2819 | OnUpdateInventoryFolder(this, invFolder.FolderData[i].FolderID, | ||
2820 | (ushort)invFolder.FolderData[i].Type, | ||
2821 | Util.FieldToString(invFolder.FolderData[i].Name), | ||
2822 | invFolder.FolderData[i].ParentID); | ||
2823 | } | ||
2824 | } | ||
2825 | break; | ||
2812 | case PacketType.CreateInventoryItem: | 2826 | case PacketType.CreateInventoryItem: |
2813 | CreateInventoryItemPacket createItem = (CreateInventoryItemPacket) Pack; | 2827 | CreateInventoryItemPacket createItem = (CreateInventoryItemPacket) Pack; |
2814 | if (OnCreateNewInventoryItem != null) | 2828 | if (OnCreateNewInventoryItem != null) |
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index d808a88..fd743c9 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -1036,6 +1036,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1036 | 1036 | ||
1037 | client.OnCreateNewInventoryItem += CreateNewInventoryItem; | 1037 | client.OnCreateNewInventoryItem += CreateNewInventoryItem; |
1038 | client.OnCreateNewInventoryFolder += CommsManager.UserProfileCacheService.HandleCreateInventoryFolder; | 1038 | client.OnCreateNewInventoryFolder += CommsManager.UserProfileCacheService.HandleCreateInventoryFolder; |
1039 | client.OnUpdateInventoryFolder += CommsManager.UserProfileCacheService.HandleUpdateInventoryFolder; | ||
1039 | client.OnFetchInventoryDescendents += CommsManager.UserProfileCacheService.HandleFetchInventoryDescendents; | 1040 | client.OnFetchInventoryDescendents += CommsManager.UserProfileCacheService.HandleFetchInventoryDescendents; |
1040 | client.OnPurgeInventoryDescendents += CommsManager.UserProfileCacheService.HandlePurgeInventoryDescendents; | 1041 | client.OnPurgeInventoryDescendents += CommsManager.UserProfileCacheService.HandlePurgeInventoryDescendents; |
1041 | client.OnRequestTaskInventory += RequestTaskInventory; | 1042 | client.OnRequestTaskInventory += RequestTaskInventory; |
diff --git a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs index 530b933..9864074 100644 --- a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs +++ b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs | |||
@@ -107,6 +107,7 @@ namespace SimpleApp | |||
107 | 107 | ||
108 | public event CreateNewInventoryItem OnCreateNewInventoryItem; | 108 | public event CreateNewInventoryItem OnCreateNewInventoryItem; |
109 | public event CreateInventoryFolder OnCreateNewInventoryFolder; | 109 | public event CreateInventoryFolder OnCreateNewInventoryFolder; |
110 | public event UpdateInventoryFolder OnUpdateInventoryFolder; | ||
110 | public event FetchInventoryDescendents OnFetchInventoryDescendents; | 111 | public event FetchInventoryDescendents OnFetchInventoryDescendents; |
111 | public event PurgeInventoryDescendents OnPurgeInventoryDescendents; | 112 | public event PurgeInventoryDescendents OnPurgeInventoryDescendents; |
112 | public event FetchInventory OnFetchInventory; | 113 | public event FetchInventory OnFetchInventory; |