diff options
author | Melanie Thielker | 2008-12-25 20:28:13 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-12-25 20:28:13 +0000 |
commit | 23844a9073e28fb8c74424812603027586bdb4df (patch) | |
tree | 3267ff93ec895d352990ea6f783f1b4a62645670 /OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |
parent | Plumb yet another groups packet (diff) | |
download | opensim-SC_OLD-23844a9073e28fb8c74424812603027586bdb4df.zip opensim-SC_OLD-23844a9073e28fb8c74424812603027586bdb4df.tar.gz opensim-SC_OLD-23844a9073e28fb8c74424812603027586bdb4df.tar.bz2 opensim-SC_OLD-23844a9073e28fb8c74424812603027586bdb4df.tar.xz |
Plumb the profile reply packets for picks, classifieds and notes
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index beebfd4..962071b 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -8219,6 +8219,70 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
8219 | OutPacket(dg, ThrottleOutPacketType.Task); | 8219 | OutPacket(dg, ThrottleOutPacketType.Task); |
8220 | } | 8220 | } |
8221 | 8221 | ||
8222 | public void SendAvatarNotesReply(UUID targetID, string text) | ||
8223 | { | ||
8224 | AvatarNotesReplyPacket an = | ||
8225 | (AvatarNotesReplyPacket)PacketPool.Instance.GetPacket( | ||
8226 | PacketType.AvatarNotesReply); | ||
8227 | |||
8228 | an.AgentData = new AvatarNotesReplyPacket.AgentDataBlock(); | ||
8229 | an.AgentData.AgentID = AgentId; | ||
8230 | |||
8231 | an.Data = new AvatarNotesReplyPacket.DataBlock(); | ||
8232 | an.Data.TargetID = targetID; | ||
8233 | an.Data.Notes = Utils.StringToBytes(text); | ||
8234 | |||
8235 | OutPacket(an, ThrottleOutPacketType.Task); | ||
8236 | } | ||
8237 | |||
8238 | public void SendAvatarPicksReply(UUID targetID, Dictionary<UUID, string> picks) | ||
8239 | { | ||
8240 | AvatarPicksReplyPacket ap = | ||
8241 | (AvatarPicksReplyPacket)PacketPool.Instance.GetPacket( | ||
8242 | PacketType.AvatarPicksReply); | ||
8243 | |||
8244 | ap.AgentData = new AvatarPicksReplyPacket.AgentDataBlock(); | ||
8245 | ap.AgentData.AgentID = AgentId; | ||
8246 | ap.AgentData.TargetID = targetID; | ||
8247 | |||
8248 | ap.Data = new AvatarPicksReplyPacket.DataBlock[picks.Count]; | ||
8249 | |||
8250 | int i = 0; | ||
8251 | foreach(KeyValuePair<UUID, string> pick in picks) | ||
8252 | { | ||
8253 | ap.Data[i] = new AvatarPicksReplyPacket.DataBlock(); | ||
8254 | ap.Data[i].PickID = pick.Key; | ||
8255 | ap.Data[i].PickName = Utils.StringToBytes(pick.Value); | ||
8256 | i++; | ||
8257 | } | ||
8258 | |||
8259 | OutPacket(ap, ThrottleOutPacketType.Task); | ||
8260 | } | ||
8261 | |||
8262 | public void SendAvatarClassifiedReply(UUID targetID, Dictionary<UUID, string> classifieds) | ||
8263 | { | ||
8264 | AvatarClassifiedReplyPacket ac = | ||
8265 | (AvatarClassifiedReplyPacket)PacketPool.Instance.GetPacket( | ||
8266 | PacketType.AvatarClassifiedReply); | ||
8267 | |||
8268 | ac.AgentData = new AvatarClassifiedReplyPacket.AgentDataBlock(); | ||
8269 | ac.AgentData.AgentID = AgentId; | ||
8270 | ac.AgentData.TargetID = targetID; | ||
8271 | |||
8272 | ac.Data = new AvatarClassifiedReplyPacket.DataBlock[classifieds.Count]; | ||
8273 | |||
8274 | int i = 0; | ||
8275 | foreach(KeyValuePair<UUID, string> classified in classifieds) | ||
8276 | { | ||
8277 | ac.Data[i] = new AvatarClassifiedReplyPacket.DataBlock(); | ||
8278 | ac.Data[i].ClassifiedID = classified.Key; | ||
8279 | ac.Data[i].Name = Utils.StringToBytes(classified.Value); | ||
8280 | i++; | ||
8281 | } | ||
8282 | |||
8283 | OutPacket(ac, ThrottleOutPacketType.Task); | ||
8284 | } | ||
8285 | |||
8222 | public void KillEndDone() | 8286 | public void KillEndDone() |
8223 | { | 8287 | { |
8224 | KillPacket kp = new KillPacket(); | 8288 | KillPacket kp = new KillPacket(); |