mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Plumb packet DirPlacesQuery for search module
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user