Add the new StatusData block to the other two searchh packets

trunk
Melanie Thielker 2009-07-28 19:28:01 +00:00
parent 64c874a951
commit aa06d9f98b
2 changed files with 12 additions and 0 deletions

View File

@ -455,6 +455,7 @@ namespace OpenSim.Framework
public bool forSale;
public bool auction;
public float dwell;
public uint Status;
}
public struct DirPeopleReplyData
@ -475,6 +476,7 @@ namespace OpenSim.Framework
public string date;
public uint unixTime;
public uint eventFlags;
public uint Status;
}
public struct DirGroupsReplyData

View File

@ -10120,6 +10120,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
packet.QueryReplies =
new DirPlacesReplyPacket.QueryRepliesBlock[data.Length];
packet.StatusData = new DirPlacesReplyPacket.StatusDataBlock[
data.Length];
packet.AgentData.AgentID = AgentId;
packet.QueryData[0].QueryID = queryID;
@ -10129,11 +10132,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{
packet.QueryReplies[i] =
new DirPlacesReplyPacket.QueryRepliesBlock();
packet.StatusData[i] = new DirPlacesReplyPacket.StatusDataBlock();
packet.QueryReplies[i].ParcelID = d.parcelID;
packet.QueryReplies[i].Name = Utils.StringToBytes(d.name);
packet.QueryReplies[i].ForSale = d.forSale;
packet.QueryReplies[i].Auction = d.auction;
packet.QueryReplies[i].Dwell = d.dwell;
packet.StatusData[i].Status = d.Status;
i++;
}
@ -10185,10 +10190,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
packet.QueryReplies = new DirEventsReplyPacket.QueryRepliesBlock[
data.Length];
packet.StatusData = new DirEventsReplyPacket.StatusDataBlock[
data.Length];
int i = 0;
foreach (DirEventsReplyData d in data)
{
packet.QueryReplies[i] = new DirEventsReplyPacket.QueryRepliesBlock();
packet.StatusData[i] = new DirEventsReplyPacket.StatusDataBlock();
packet.QueryReplies[i].OwnerID = d.ownerID;
packet.QueryReplies[i].Name =
Utils.StringToBytes(d.name);
@ -10197,6 +10206,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
Utils.StringToBytes(d.date);
packet.QueryReplies[i].UnixTime = d.unixTime;
packet.QueryReplies[i].EventFlags = d.eventFlags;
packet.StatusData[i].Status = d.Status;
i++;
}