aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
authorMelanie Thielker2008-07-31 12:31:31 +0000
committerMelanie Thielker2008-07-31 12:31:31 +0000
commitc441a03ea3120c52af3fdffb284194f2609127cf (patch)
tree539b48d22ab51f45dc09f930dbeb1b7f6ba703a8 /OpenSim/Region/ClientStack
parentThank you, HomerHorwitz, for a patch that add PERMISSION_CONTROL_CAMERA (diff)
downloadopensim-SC_OLD-c441a03ea3120c52af3fdffb284194f2609127cf.zip
opensim-SC_OLD-c441a03ea3120c52af3fdffb284194f2609127cf.tar.gz
opensim-SC_OLD-c441a03ea3120c52af3fdffb284194f2609127cf.tar.bz2
opensim-SC_OLD-c441a03ea3120c52af3fdffb284194f2609127cf.tar.xz
Thank you, HomerHorwitz, for a patch that implements llSetCameraParams/llClearCameraParams.
Fixes Mantis #1867
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index 995fe5e..04518bd 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -6281,5 +6281,35 @@ namespace OpenSim.Region.ClientStack.LindenUDP
6281 } 6281 }
6282 6282
6283 #endregion 6283 #endregion
6284
6285
6286 #region Camera
6287
6288 public void SendSetFollowCamProperties (LLUUID objectID, SortedDictionary<int, float> parameters)
6289 {
6290 SetFollowCamPropertiesPacket packet = (SetFollowCamPropertiesPacket)PacketPool.Instance.GetPacket(PacketType.SetFollowCamProperties);
6291 packet.ObjectData.ObjectID = objectID;
6292 SetFollowCamPropertiesPacket.CameraPropertyBlock[] camPropBlock = new SetFollowCamPropertiesPacket.CameraPropertyBlock[parameters.Count];
6293 uint idx = 0;
6294 foreach(KeyValuePair<int, float> pair in parameters)
6295 {
6296 SetFollowCamPropertiesPacket.CameraPropertyBlock block = new SetFollowCamPropertiesPacket.CameraPropertyBlock();
6297 block.Type = pair.Key;
6298 block.Value = pair.Value;
6299
6300 camPropBlock[idx++] = block;
6301 }
6302 packet.CameraProperty = camPropBlock;
6303 OutPacket(packet, ThrottleOutPacketType.Task);
6304 }
6305
6306 public void SendClearFollowCamProperties (LLUUID objectID)
6307 {
6308 ClearFollowCamPropertiesPacket packet = (ClearFollowCamPropertiesPacket)PacketPool.Instance.GetPacket(PacketType.ClearFollowCamProperties);
6309 packet.ObjectData.ObjectID = objectID;
6310 OutPacket(packet, ThrottleOutPacketType.Task);
6311 }
6312
6313 #endregion
6284 } 6314 }
6285} 6315}