Thank you, HomerHorwitz, for a patch that implements llSetCameraParams/llClearCameraParams.

Fixes Mantis #1867
This commit is contained in:
Melanie Thielker
2008-07-31 12:31:31 +00:00
parent 244ad2e614
commit c441a03ea3
8 changed files with 230 additions and 4 deletions

View File

@@ -6281,5 +6281,35 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
#endregion
#region Camera
public void SendSetFollowCamProperties (LLUUID objectID, SortedDictionary<int, float> parameters)
{
SetFollowCamPropertiesPacket packet = (SetFollowCamPropertiesPacket)PacketPool.Instance.GetPacket(PacketType.SetFollowCamProperties);
packet.ObjectData.ObjectID = objectID;
SetFollowCamPropertiesPacket.CameraPropertyBlock[] camPropBlock = new SetFollowCamPropertiesPacket.CameraPropertyBlock[parameters.Count];
uint idx = 0;
foreach(KeyValuePair<int, float> pair in parameters)
{
SetFollowCamPropertiesPacket.CameraPropertyBlock block = new SetFollowCamPropertiesPacket.CameraPropertyBlock();
block.Type = pair.Key;
block.Value = pair.Value;
camPropBlock[idx++] = block;
}
packet.CameraProperty = camPropBlock;
OutPacket(packet, ThrottleOutPacketType.Task);
}
public void SendClearFollowCamProperties (LLUUID objectID)
{
ClearFollowCamPropertiesPacket packet = (ClearFollowCamPropertiesPacket)PacketPool.Instance.GetPacket(PacketType.ClearFollowCamProperties);
packet.ObjectData.ObjectID = objectID;
OutPacket(packet, ThrottleOutPacketType.Task);
}
#endregion
}
}