diff options
author | Melanie Thielker | 2008-10-05 02:25:53 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-10-05 02:25:53 +0000 |
commit | 13e3ffada36529bd64909d272b4e25145c26e4c8 (patch) | |
tree | 4313bbf0086f150b747b3492b198a29672b7b3e0 /OpenSim/Region/ClientStack/LindenUDP | |
parent | Fix Mantis #2281: touch events in non-default states in DNE work again. (diff) | |
download | opensim-SC_OLD-13e3ffada36529bd64909d272b4e25145c26e4c8.zip opensim-SC_OLD-13e3ffada36529bd64909d272b4e25145c26e4c8.tar.gz opensim-SC_OLD-13e3ffada36529bd64909d272b4e25145c26e4c8.tar.bz2 opensim-SC_OLD-13e3ffada36529bd64909d272b4e25145c26e4c8.tar.xz |
Plumb in the DirPlacesReply packet
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 5d7a1ca..2cb33d0 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -6725,6 +6725,37 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
6725 | return string.Empty; | 6725 | return string.Empty; |
6726 | } | 6726 | } |
6727 | 6727 | ||
6728 | public void SendDirPlacesReply(UUID queryID, DirPlacesReplyData[] data) | ||
6729 | { | ||
6730 | DirPlacesReplyPacket packet = (DirPlacesReplyPacket)PacketPool.Instance.GetPacket(PacketType.DirPlacesReply); | ||
6731 | |||
6732 | packet.AgentData = new DirPlacesReplyPacket.AgentDataBlock(); | ||
6733 | |||
6734 | packet.QueryData = new DirPlacesReplyPacket.QueryDataBlock[1]; | ||
6735 | packet.QueryData[0] = new DirPlacesReplyPacket.QueryDataBlock(); | ||
6736 | |||
6737 | packet.QueryReplies = | ||
6738 | new DirPlacesReplyPacket.QueryRepliesBlock[data.Length]; | ||
6739 | |||
6740 | packet.AgentData.AgentID = AgentId; | ||
6741 | |||
6742 | packet.QueryData[0].QueryID = queryID; | ||
6743 | |||
6744 | int i = 0; | ||
6745 | foreach (DirPlacesReplyData d in data) | ||
6746 | { | ||
6747 | packet.QueryReplies[i] = | ||
6748 | new DirPlacesReplyPacket.QueryRepliesBlock(); | ||
6749 | packet.QueryReplies[i].ParcelID = d.parcelID; | ||
6750 | packet.QueryReplies[i].Name = Utils.StringToBytes(d.name); | ||
6751 | packet.QueryReplies[i].ForSale = d.forSale; | ||
6752 | packet.QueryReplies[i].Auction = d.auction; | ||
6753 | packet.QueryReplies[i].Dwell = d.dwell; | ||
6754 | } | ||
6755 | |||
6756 | OutPacket(packet, ThrottleOutPacketType.Task); | ||
6757 | } | ||
6758 | |||
6728 | public void KillEndDone() | 6759 | public void KillEndDone() |
6729 | { | 6760 | { |
6730 | KillPacket kp = new KillPacket(); | 6761 | KillPacket kp = new KillPacket(); |