diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 65 |
1 files changed, 37 insertions, 28 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index e91d37f..311b1e4 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -4337,8 +4337,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4337 | OutPacket(packet, ThrottleOutPacketType.Task); | 4337 | OutPacket(packet, ThrottleOutPacketType.Task); |
4338 | } | 4338 | } |
4339 | 4339 | ||
4340 | public void SendLandProperties(int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags) | 4340 | public void SendLandProperties( |
4341 | int sequence_id, bool snap_selection, int request_result, ILandObject lo, | ||
4342 | float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags) | ||
4341 | { | 4343 | { |
4344 | // m_log.DebugFormat("[LLCLIENTVIEW]: Sending land properties for {0} to {1}", lo.LandData.GlobalID, Name); | ||
4345 | |||
4346 | LandData landData = lo.LandData; | ||
4347 | |||
4342 | ParcelPropertiesMessage updateMessage = new ParcelPropertiesMessage(); | 4348 | ParcelPropertiesMessage updateMessage = new ParcelPropertiesMessage(); |
4343 | 4349 | ||
4344 | updateMessage.AABBMax = landData.AABBMax; | 4350 | updateMessage.AABBMax = landData.AABBMax; |
@@ -4346,15 +4352,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4346 | updateMessage.Area = landData.Area; | 4352 | updateMessage.Area = landData.Area; |
4347 | updateMessage.AuctionID = landData.AuctionID; | 4353 | updateMessage.AuctionID = landData.AuctionID; |
4348 | updateMessage.AuthBuyerID = landData.AuthBuyerID; | 4354 | updateMessage.AuthBuyerID = landData.AuthBuyerID; |
4349 | |||
4350 | updateMessage.Bitmap = landData.Bitmap; | 4355 | updateMessage.Bitmap = landData.Bitmap; |
4351 | |||
4352 | updateMessage.Desc = landData.Description; | 4356 | updateMessage.Desc = landData.Description; |
4353 | updateMessage.Category = landData.Category; | 4357 | updateMessage.Category = landData.Category; |
4354 | updateMessage.ClaimDate = Util.ToDateTime(landData.ClaimDate); | 4358 | updateMessage.ClaimDate = Util.ToDateTime(landData.ClaimDate); |
4355 | updateMessage.ClaimPrice = landData.ClaimPrice; | 4359 | updateMessage.ClaimPrice = landData.ClaimPrice; |
4356 | updateMessage.GroupID = landData.GroupID; | 4360 | updateMessage.GroupID = landData.GroupID; |
4357 | updateMessage.GroupPrims = landData.GroupPrims; | ||
4358 | updateMessage.IsGroupOwned = landData.IsGroupOwned; | 4361 | updateMessage.IsGroupOwned = landData.IsGroupOwned; |
4359 | updateMessage.LandingType = (LandingType) landData.LandingType; | 4362 | updateMessage.LandingType = (LandingType) landData.LandingType; |
4360 | updateMessage.LocalID = landData.LocalID; | 4363 | updateMessage.LocalID = landData.LocalID; |
@@ -4375,9 +4378,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4375 | updateMessage.Name = landData.Name; | 4378 | updateMessage.Name = landData.Name; |
4376 | updateMessage.OtherCleanTime = landData.OtherCleanTime; | 4379 | updateMessage.OtherCleanTime = landData.OtherCleanTime; |
4377 | updateMessage.OtherCount = 0; //TODO: Unimplemented | 4380 | updateMessage.OtherCount = 0; //TODO: Unimplemented |
4378 | updateMessage.OtherPrims = landData.OtherPrims; | 4381 | updateMessage.OwnerID = landData.OwnerID; |
4379 | updateMessage.OwnerID = landData.OwnerID; | ||
4380 | updateMessage.OwnerPrims = landData.OwnerPrims; | ||
4381 | updateMessage.ParcelFlags = (ParcelFlags) landData.Flags; | 4382 | updateMessage.ParcelFlags = (ParcelFlags) landData.Flags; |
4382 | updateMessage.ParcelPrimBonus = simObjectBonusFactor; | 4383 | updateMessage.ParcelPrimBonus = simObjectBonusFactor; |
4383 | updateMessage.PassHours = landData.PassHours; | 4384 | updateMessage.PassHours = landData.PassHours; |
@@ -4392,10 +4393,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4392 | 4393 | ||
4393 | updateMessage.RentPrice = 0; | 4394 | updateMessage.RentPrice = 0; |
4394 | updateMessage.RequestResult = (ParcelResult) request_result; | 4395 | updateMessage.RequestResult = (ParcelResult) request_result; |
4395 | updateMessage.SalePrice = landData.SalePrice; | 4396 | updateMessage.SalePrice = landData.SalePrice; |
4396 | updateMessage.SelectedPrims = landData.SelectedPrims; | ||
4397 | updateMessage.SelfCount = 0; //TODO: Unimplemented | 4397 | updateMessage.SelfCount = 0; //TODO: Unimplemented |
4398 | updateMessage.SequenceID = sequence_id; | 4398 | updateMessage.SequenceID = sequence_id; |
4399 | |||
4399 | if (landData.SimwideArea > 0) | 4400 | if (landData.SimwideArea > 0) |
4400 | { | 4401 | { |
4401 | int simulatorCapacity = (int)(((float)landData.SimwideArea / 65536.0f) * (float)m_scene.RegionInfo.ObjectCapacity * (float)m_scene.RegionInfo.RegionSettings.ObjectBonus); | 4402 | int simulatorCapacity = (int)(((float)landData.SimwideArea / 65536.0f) * (float)m_scene.RegionInfo.ObjectCapacity * (float)m_scene.RegionInfo.RegionSettings.ObjectBonus); |
@@ -4405,22 +4406,28 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4405 | { | 4406 | { |
4406 | updateMessage.SimWideMaxPrims = 0; | 4407 | updateMessage.SimWideMaxPrims = 0; |
4407 | } | 4408 | } |
4408 | updateMessage.SimWideTotalPrims = landData.SimwidePrims; | 4409 | |
4409 | updateMessage.SnapSelection = snap_selection; | 4410 | updateMessage.SnapSelection = snap_selection; |
4410 | updateMessage.SnapshotID = landData.SnapshotID; | 4411 | updateMessage.SnapshotID = landData.SnapshotID; |
4411 | updateMessage.Status = (ParcelStatus) landData.Status; | 4412 | updateMessage.Status = (ParcelStatus) landData.Status; |
4412 | updateMessage.TotalPrims = landData.OwnerPrims + landData.GroupPrims + landData.OtherPrims + | 4413 | updateMessage.UserLocation = landData.UserLocation; |
4413 | landData.SelectedPrims; | 4414 | updateMessage.UserLookAt = landData.UserLookAt; |
4414 | updateMessage.UserLocation = landData.UserLocation; | 4415 | |
4415 | updateMessage.UserLookAt = landData.UserLookAt; | 4416 | updateMessage.MediaType = landData.MediaType; |
4416 | 4417 | updateMessage.MediaDesc = landData.MediaDescription; | |
4417 | updateMessage.MediaType = landData.MediaType; | 4418 | updateMessage.MediaWidth = landData.MediaWidth; |
4418 | updateMessage.MediaDesc = landData.MediaDescription; | 4419 | updateMessage.MediaHeight = landData.MediaHeight; |
4419 | updateMessage.MediaWidth = landData.MediaWidth; | 4420 | updateMessage.MediaLoop = landData.MediaLoop; |
4420 | updateMessage.MediaHeight = landData.MediaHeight; | 4421 | updateMessage.ObscureMusic = landData.ObscureMusic; |
4421 | updateMessage.MediaLoop = landData.MediaLoop; | 4422 | updateMessage.ObscureMedia = landData.ObscureMedia; |
4422 | updateMessage.ObscureMusic = landData.ObscureMusic; | 4423 | |
4423 | updateMessage.ObscureMedia = landData.ObscureMedia; | 4424 | IPrimCounts pc = lo.PrimCounts; |
4425 | updateMessage.OwnerPrims = pc.Owner; | ||
4426 | updateMessage.GroupPrims = pc.Group; | ||
4427 | updateMessage.OtherPrims = pc.Others; | ||
4428 | updateMessage.SelectedPrims = pc.Selected; | ||
4429 | updateMessage.TotalPrims = pc.Total; | ||
4430 | updateMessage.SimWideTotalPrims = pc.Simulator; | ||
4424 | 4431 | ||
4425 | try | 4432 | try |
4426 | { | 4433 | { |
@@ -4428,13 +4435,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4428 | if (eq != null) | 4435 | if (eq != null) |
4429 | { | 4436 | { |
4430 | eq.ParcelProperties(updateMessage, this.AgentId); | 4437 | eq.ParcelProperties(updateMessage, this.AgentId); |
4431 | } else { | 4438 | } |
4432 | m_log.Warn("No EQ Interface when sending parcel data."); | 4439 | else |
4440 | { | ||
4441 | m_log.Warn("[LLCLIENTVIEW]: No EQ Interface when sending parcel data."); | ||
4433 | } | 4442 | } |
4434 | } | 4443 | } |
4435 | catch (Exception ex) | 4444 | catch (Exception ex) |
4436 | { | 4445 | { |
4437 | m_log.Error("Unable to send parcel data via eventqueue - exception: " + ex.ToString()); | 4446 | m_log.Error("[LLCLIENTVIEW]: Unable to send parcel data via eventqueue - exception: " + ex.ToString()); |
4438 | } | 4447 | } |
4439 | } | 4448 | } |
4440 | 4449 | ||