Ejemplo n.º 1
0
        /// <summary>
        ///     Parcel request
        /// </summary>
        /// <param name="remoteClient"></param>
        /// <param name="queryID"></param>
        /// <param name="queryText">The thing to search for</param>
        /// <param name="queryFlags"></param>
        /// <param name="category"></param>
        /// <param name="simName"></param>
        /// <param name="queryStart"></param>
        protected void DirPlacesQuery(IClientAPI remoteClient, UUID queryID,
                                      string queryText, int queryFlags, int category, string simName,
                                      int queryStart)
        {
            List <DirPlacesReplyData> ReturnValues =
                DirectoryService.FindLand(queryText.Trim(), category.ToString(), queryStart,
                                          (uint)queryFlags, remoteClient.ScopeID);

            SplitPackets(ReturnValues,
                         data => remoteClient.SendDirPlacesReply(queryID, data));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Parcel request
        /// </summary>
        /// <param name="remoteClient"></param>
        /// <param name="queryID"></param>
        /// <param name="queryText">The thing to search for</param>
        /// <param name="queryFlags"></param>
        /// <param name="category"></param>
        /// <param name="simName"></param>
        /// <param name="queryStart"></param>
        protected void DirPlacesQuery(IClientAPI remoteClient, UUID queryID,
                                      string queryText, int queryFlags, int category, string simName,
                                      int queryStart)
        {
            List <DirPlacesReplyData> ReturnValues = new List <DirPlacesReplyData>(directoryService.FindLand(queryText, category.ToString(), queryStart, (uint)queryFlags));

            SplitPackets <DirPlacesReplyData> (ReturnValues, delegate(DirPlacesReplyData[] data)
            {
                remoteClient.SendDirPlacesReply(queryID, data);
            });
        }