From f206ffd5a8cd0ef362e972abf7375eb739f82e5b Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Wed, 20 Aug 2008 01:48:51 +0000 Subject: Mantis #2003 - thank you, SachaMagne, for a patch that implements the first part of gesture persistence. ---------------------------------------------------------- Attachments no longer vanish on walking crossing. Teleport is still problematic, but will now be blocked with message "Inconsistent attachment state" rather than losing the attachment. Detach to be able to TP in that case. --- .../Region/ClientStack/LindenUDP/LLClientView.cs | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'OpenSim/Region/ClientStack/LindenUDP') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 059255f..83a1181 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -247,6 +247,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP private GetScriptRunning handlerGetScriptRunning = null; private SetScriptRunning handlerSetScriptRunning = null; private UpdateVector handlerAutoPilotGo = null; + //Gesture + private ActivateGesture handlerActivateGesture = null; + private DeactivateGesture handlerDeactivateGesture = null; //private TerrainUnacked handlerUnackedTerrain = null; @@ -931,6 +934,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP public event TerrainUnacked OnUnackedTerrain; + public event ActivateGesture OnActivateGesture; + public event DeactivateGesture OnDeactivateGesture; + + + // voire si c'est necessaire + public void ActivateGesture(LLUUID assetId, LLUUID gestureId) + { + } + public void DeactivateGesture(LLUUID assetId, LLUUID gestureId) + { + } #region Scene/Avatar to Client /// @@ -2065,6 +2079,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP #endregion + // Gesture + + + #region Appearance/ Wearables Methods /// @@ -5879,6 +5897,33 @@ namespace OpenSim.Region.ClientStack.LindenUDP #endregion + #region Gesture Managment + + case PacketType.ActivateGestures: + ActivateGesturesPacket activateGesturePacket = (ActivateGesturesPacket)Pack; + handlerActivateGesture = OnActivateGesture; + if (handlerActivateGesture != null) + { + handlerActivateGesture(this, + activateGesturePacket.Data[0].AssetID, + activateGesturePacket.Data[0].ItemID); + } + else m_log.Error("Null pointer for activateGesture"); + + break; + + case PacketType.DeactivateGestures: + DeactivateGesturesPacket deactivateGesturePacket = (DeactivateGesturesPacket)Pack; + handlerDeactivateGesture = OnDeactivateGesture; + if (handlerDeactivateGesture != null) + { + handlerDeactivateGesture(this, deactivateGesturePacket.Data[0].ItemID); + } + break; + + #endregion + + #region unimplemented handlers case PacketType.StartPingCheck: -- cgit v1.1