Add PickInfoReply packet.

Fixes Mantis #3324
0.6.5-rc1
Melanie Thielker 2009-03-30 11:51:34 +00:00
parent d468b7f2d3
commit f88d755f96
6 changed files with 41 additions and 0 deletions

View File

@ -1600,5 +1600,9 @@ namespace OpenSim.Client.MXP.ClientStack
public void SendMuteListUpdate(string filename) public void SendMuteListUpdate(string filename)
{ {
} }
public void SendPickInfoReply(UUID pickID,UUID creatorID, bool topPick, UUID parcelID, string name, string desc, UUID snapshotID, string user, string originalName, string simName, Vector3 posGlobal, int sortOrder, bool enabled)
{
}
} }
} }

View File

@ -1122,6 +1122,8 @@ namespace OpenSim.Framework
void SendAgentDropGroup(UUID groupID); void SendAgentDropGroup(UUID groupID);
void SendAvatarNotesReply(UUID targetID, string text); void SendAvatarNotesReply(UUID targetID, string text);
void SendAvatarPicksReply(UUID targetID, Dictionary<UUID, string> picks); void SendAvatarPicksReply(UUID targetID, Dictionary<UUID, string> picks);
void SendPickInfoReply(UUID pickID,UUID creatorID, bool topPick, UUID parcelID, string name, string desc, UUID snapshotID, string user, string originalName, string simName, Vector3 posGlobal, int sortOrder, bool enabled);
void SendAvatarClassifiedReply(UUID targetID, Dictionary<UUID, string> classifieds); void SendAvatarClassifiedReply(UUID targetID, Dictionary<UUID, string> classifieds);
void SendParcelDwellReply(int localID, UUID parcelID, float dwell); void SendParcelDwellReply(int localID, UUID parcelID, float dwell);

View File

@ -8701,6 +8701,31 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(muteListUpdate, ThrottleOutPacketType.Task); OutPacket(muteListUpdate, ThrottleOutPacketType.Task);
} }
public void SendPickInfoReply(UUID pickID,UUID creatorID, bool topPick, UUID parcelID, string name, string desc, UUID snapshotID, string user, string originalName, string simName, Vector3 posGlobal, int sortOrder, bool enabled)
{
PickInfoReplyPacket pickInfoReply = (PickInfoReplyPacket)PacketPool.Instance.GetPacket(PacketType.PickInfoReply);
pickInfoReply.AgentData = new PickInfoReplyPacket.AgentDataBlock();
pickInfoReply.AgentData.AgentID = AgentId;
pickInfoReply.Data = new PickInfoReplyPacket.DataBlock();
pickInfoReply.Data.PickID = pickID;
pickInfoReply.Data.CreatorID = creatorID;
pickInfoReply.Data.TopPick = topPick;
pickInfoReply.Data.ParcelID = parcelID;
pickInfoReply.Data.Name = Utils.StringToBytes(name);
pickInfoReply.Data.Desc = Utils.StringToBytes(desc);
pickInfoReply.Data.SnapshotID = snapshotID;
pickInfoReply.Data.User = Utils.StringToBytes(user);
pickInfoReply.Data.OriginalName = Utils.StringToBytes(originalName);
pickInfoReply.Data.SimName = Utils.StringToBytes(simName);
pickInfoReply.Data.PosGlobal = new Vector3d(posGlobal);
pickInfoReply.Data.SortOrder = sortOrder;
pickInfoReply.Data.Enabled = enabled;
OutPacket(pickInfoReply, ThrottleOutPacketType.Task);
}
public string Report() public string Report()
{ {
LLPacketHandler handler = (LLPacketHandler) m_PacketHandler; LLPacketHandler handler = (LLPacketHandler) m_PacketHandler;

View File

@ -1067,6 +1067,9 @@ namespace OpenSim.Region.Examples.SimpleModule
{ {
} }
public void SendPickInfoReply(UUID pickID,UUID creatorID, bool topPick, UUID parcelID, string name, string desc, UUID snapshotID, string user, string originalName, string simName, Vector3 posGlobal, int sortOrder, bool enabled)
{
}
#endregion #endregion
} }
} }

View File

@ -1067,6 +1067,9 @@ namespace OpenSim.Region.OptionalModules.World.NPC
{ {
} }
public void SendPickInfoReply(UUID pickID,UUID creatorID, bool topPick, UUID parcelID, string name, string desc, UUID snapshotID, string user, string originalName, string simName, Vector3 posGlobal, int sortOrder, bool enabled)
{
}
#endregion #endregion
} }
} }

View File

@ -1108,5 +1108,9 @@ namespace OpenSim.Tests.Common.Mock
public void SendMuteListUpdate(string filename) public void SendMuteListUpdate(string filename)
{ {
} }
public void SendPickInfoReply(UUID pickID,UUID creatorID, bool topPick, UUID parcelID, string name, string desc, UUID snapshotID, string user, string originalName, string simName, Vector3 posGlobal, int sortOrder, bool enabled)
{
}
} }
} }