diff options
author | Melanie | 2011-12-04 12:35:01 +0100 |
---|---|---|
committer | Melanie | 2011-12-04 12:35:01 +0100 |
commit | ec8c93aa5e1d0af2c0adf38156b05e85421f4a81 (patch) | |
tree | 95c3431fae78fede98f6571704ccbd5ff7bf1c4c /OpenSim/Region/ClientStack | |
parent | Remove some debug code that had snuck in (diff) | |
download | opensim-SC_OLD-ec8c93aa5e1d0af2c0adf38156b05e85421f4a81.zip opensim-SC_OLD-ec8c93aa5e1d0af2c0adf38156b05e85421f4a81.tar.gz opensim-SC_OLD-ec8c93aa5e1d0af2c0adf38156b05e85421f4a81.tar.bz2 opensim-SC_OLD-ec8c93aa5e1d0af2c0adf38156b05e85421f4a81.tar.xz |
Implement ChangeInventoryItemFlagsPacket handling
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 3186dff..effa8d0 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -286,6 +286,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
286 | public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; | 286 | public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; |
287 | public event SimWideDeletesDelegate OnSimWideDeletes; | 287 | public event SimWideDeletesDelegate OnSimWideDeletes; |
288 | public event SendPostcard OnSendPostcard; | 288 | public event SendPostcard OnSendPostcard; |
289 | public event ChangeInventoryItemFlags OnChangeInventoryItemFlags; | ||
289 | public event MuteListEntryUpdate OnUpdateMuteListEntry; | 290 | public event MuteListEntryUpdate OnUpdateMuteListEntry; |
290 | public event MuteListEntryRemove OnRemoveMuteListEntry; | 291 | public event MuteListEntryRemove OnRemoveMuteListEntry; |
291 | public event GodlikeMessage onGodlikeMessage; | 292 | public event GodlikeMessage onGodlikeMessage; |
@@ -5344,6 +5345,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
5344 | AddLocalPacketHandler(PacketType.GroupVoteHistoryRequest, HandleGroupVoteHistoryRequest); | 5345 | AddLocalPacketHandler(PacketType.GroupVoteHistoryRequest, HandleGroupVoteHistoryRequest); |
5345 | AddLocalPacketHandler(PacketType.SimWideDeletes, HandleSimWideDeletes); | 5346 | AddLocalPacketHandler(PacketType.SimWideDeletes, HandleSimWideDeletes); |
5346 | AddLocalPacketHandler(PacketType.SendPostcard, HandleSendPostcard); | 5347 | AddLocalPacketHandler(PacketType.SendPostcard, HandleSendPostcard); |
5348 | AddLocalPacketHandler(PacketType.ChangeInventoryItemFlags, HandleChangeInventoryItemFlags); | ||
5347 | 5349 | ||
5348 | AddGenericPacketHandler("autopilot", HandleAutopilot); | 5350 | AddGenericPacketHandler("autopilot", HandleAutopilot); |
5349 | } | 5351 | } |
@@ -9822,6 +9824,20 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
9822 | return false; | 9824 | return false; |
9823 | } | 9825 | } |
9824 | 9826 | ||
9827 | private bool HandleChangeInventoryItemFlags(IClientAPI client, Packet packet) | ||
9828 | { | ||
9829 | ChangeInventoryItemFlagsPacket ChangeInventoryItemFlags = | ||
9830 | (ChangeInventoryItemFlagsPacket)packet; | ||
9831 | ChangeInventoryItemFlags handlerChangeInventoryItemFlags = OnChangeInventoryItemFlags; | ||
9832 | if (handlerChangeInventoryItemFlags != null) | ||
9833 | { | ||
9834 | foreach(ChangeInventoryItemFlagsPacket.InventoryDataBlock b in ChangeInventoryItemFlags.InventoryData) | ||
9835 | handlerChangeInventoryItemFlags(this, b.ItemID, b.Flags); | ||
9836 | return true; | ||
9837 | } | ||
9838 | return false; | ||
9839 | } | ||
9840 | |||
9825 | private bool HandleUseCircuitCode(IClientAPI sender, Packet Pack) | 9841 | private bool HandleUseCircuitCode(IClientAPI sender, Packet Pack) |
9826 | { | 9842 | { |
9827 | return true; | 9843 | return true; |