Plumb the profile reply packets for picks, classifieds and notes

0.6.2-post-fixes
Melanie Thielker 2008-12-25 20:28:13 +00:00
parent 3b6ffd9e41
commit 23844a9073
5 changed files with 120 additions and 0 deletions

View File

@ -1077,6 +1077,11 @@ namespace OpenSim.Framework
void SendAvatarClassifiedReply(UUID targetID, UUID[] classifiedID, string[] name); void SendAvatarClassifiedReply(UUID targetID, UUID[] classifiedID, string[] name);
void SendClassifiedInfoReply(UUID classifiedID, UUID creatorID, uint creationDate, uint expirationDate, uint category, string name, string description, UUID parcelID, uint parentEstate, UUID snapshotID, string simName, Vector3 globalPos, string parcelName, byte classifiedFlags, int price); void SendClassifiedInfoReply(UUID classifiedID, UUID creatorID, uint creationDate, uint expirationDate, uint category, string name, string description, UUID parcelID, uint parentEstate, UUID snapshotID, string simName, Vector3 globalPos, string parcelName, byte classifiedFlags, int price);
void SendAgentDropGroup(UUID groupID);
void SendAvatarNotesReply(UUID targetID, string text);
void SendAvatarPicksReply(UUID targetID, Dictionary<UUID, string> picks);
void SendAvatarClassifiedReply(UUID targetID, Dictionary<UUID, string> classifieds);
void KillEndDone(); void KillEndDone();
bool AddGenericPacketHandler(string MethodName, GenericMessage handler); bool AddGenericPacketHandler(string MethodName, GenericMessage handler);

View File

@ -8219,6 +8219,70 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(dg, ThrottleOutPacketType.Task); OutPacket(dg, ThrottleOutPacketType.Task);
} }
public void SendAvatarNotesReply(UUID targetID, string text)
{
AvatarNotesReplyPacket an =
(AvatarNotesReplyPacket)PacketPool.Instance.GetPacket(
PacketType.AvatarNotesReply);
an.AgentData = new AvatarNotesReplyPacket.AgentDataBlock();
an.AgentData.AgentID = AgentId;
an.Data = new AvatarNotesReplyPacket.DataBlock();
an.Data.TargetID = targetID;
an.Data.Notes = Utils.StringToBytes(text);
OutPacket(an, ThrottleOutPacketType.Task);
}
public void SendAvatarPicksReply(UUID targetID, Dictionary<UUID, string> picks)
{
AvatarPicksReplyPacket ap =
(AvatarPicksReplyPacket)PacketPool.Instance.GetPacket(
PacketType.AvatarPicksReply);
ap.AgentData = new AvatarPicksReplyPacket.AgentDataBlock();
ap.AgentData.AgentID = AgentId;
ap.AgentData.TargetID = targetID;
ap.Data = new AvatarPicksReplyPacket.DataBlock[picks.Count];
int i = 0;
foreach(KeyValuePair<UUID, string> pick in picks)
{
ap.Data[i] = new AvatarPicksReplyPacket.DataBlock();
ap.Data[i].PickID = pick.Key;
ap.Data[i].PickName = Utils.StringToBytes(pick.Value);
i++;
}
OutPacket(ap, ThrottleOutPacketType.Task);
}
public void SendAvatarClassifiedReply(UUID targetID, Dictionary<UUID, string> classifieds)
{
AvatarClassifiedReplyPacket ac =
(AvatarClassifiedReplyPacket)PacketPool.Instance.GetPacket(
PacketType.AvatarClassifiedReply);
ac.AgentData = new AvatarClassifiedReplyPacket.AgentDataBlock();
ac.AgentData.AgentID = AgentId;
ac.AgentData.TargetID = targetID;
ac.Data = new AvatarClassifiedReplyPacket.DataBlock[classifieds.Count];
int i = 0;
foreach(KeyValuePair<UUID, string> classified in classifieds)
{
ac.Data[i] = new AvatarClassifiedReplyPacket.DataBlock();
ac.Data[i].ClassifiedID = classified.Key;
ac.Data[i].Name = Utils.StringToBytes(classified.Value);
i++;
}
OutPacket(ac, ThrottleOutPacketType.Task);
}
public void KillEndDone() public void KillEndDone()
{ {
KillPacket kp = new KillPacket(); KillPacket kp = new KillPacket();

View File

@ -1023,6 +1023,23 @@ namespace OpenSim.Region.Environment.Modules.World.NPC
{ {
} }
public void SendAgentDropGroup(UUID groupID)
{
}
public void SendAvatarNotesReply(UUID targetID, string text)
{
}
public void SendAvatarPicksReply(UUID targetID, Dictionary<UUID, string> picks)
{
}
public void SendAvatarClassifiedReply(UUID targetID, Dictionary<UUID, string> classifieds)
{
}
#endregion #endregion
} }
} }

View File

@ -1024,6 +1024,23 @@ namespace OpenSim.Region.Examples.SimpleModule
{ {
} }
public void SendAgentDropGroup(UUID groupID)
{
}
public void SendAvatarNotesReply(UUID targetID, string text)
{
}
public void SendAvatarPicksReply(UUID targetID, Dictionary<UUID, string> picks)
{
}
public void SendAvatarClassifiedReply(UUID targetID, Dictionary<UUID, string> classifieds)
{
}
#endregion #endregion
} }
} }

View File

@ -970,5 +970,22 @@ namespace OpenSim.Tests.Common.Mock
{ {
} }
public void SendAgentDropGroup(UUID groupID)
{
}
public void SendAvatarNotesReply(UUID targetID, string text)
{
}
public void SendAvatarPicksReply(UUID targetID, Dictionary<UUID, string> picks)
{
}
public void SendAvatarClassifiedReply(UUID targetID, Dictionary<UUID, string> classifieds)
{
}
} }
} }