diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.cs | 14 |
1 files changed, 14 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) |