Plumb packet DirPlacesQuery for search module

This commit is contained in:
Melanie Thielker
2008-10-04 22:29:37 +00:00
parent 31362a67df
commit f52d779550
4 changed files with 29 additions and 0 deletions

View File

@@ -260,6 +260,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
private ActivateGesture handlerActivateGesture = null;
private DeactivateGesture handlerDeactivateGesture = null;
private DirPlacesQuery handlerDirPlacesQuery = null;
//private TerrainUnacked handlerUnackedTerrain = null;
//**
@@ -984,6 +986,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
public event ActivateGesture OnActivateGesture;
public event DeactivateGesture OnDeactivateGesture;
public event DirPlacesQuery OnDirPlacesQuery;
// voire si c'est necessaire
public void ActivateGesture(UUID assetId, UUID gestureId)
@@ -6246,6 +6250,24 @@ namespace OpenSim.Region.ClientStack.LindenUDP
// TODO: handle this packet
//m_log.Warn("[CLIENT]: unhandled InventoryDescent packet");
break;
case PacketType.DirPlacesQuery:
DirPlacesQueryPacket dirPlacesQueryPacket = (DirPlacesQueryPacket)Pack;
Console.WriteLine(dirPlacesQueryPacket.ToString());
handlerDirPlacesQuery = OnDirPlacesQuery;
if (handlerDirPlacesQuery != null)
{
handlerDirPlacesQuery(this,
dirPlacesQueryPacket.QueryData.QueryID,
Utils.BytesToString(
dirPlacesQueryPacket.QueryData.QueryText),
(int)dirPlacesQueryPacket.QueryData.QueryFlags,
(int)dirPlacesQueryPacket.QueryData.Category,
Utils.BytesToString(
dirPlacesQueryPacket.QueryData.SimName),
dirPlacesQueryPacket.QueryData.QueryStart);
}
break;
default:
m_log.Warn("[CLIENT]: unhandled packet " + Pack.ToString());
break;