diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 30 |
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 | } |