Contains the data returned when all parcel data has been retrieved from a simulator
Наследование: System.EventArgs
Пример #1
0
 /// <summary>Raises the SimParcelsDownloaded event</summary>
 /// <param name="e">A SimParcelsDownloadedEventArgs object containing the
 /// data returned from the simulator</param>
 protected virtual void OnSimParcelsDownloaded(SimParcelsDownloadedEventArgs e)
 {
     EventHandler<SimParcelsDownloadedEventArgs> handler = m_SimParcelsDownloaded;
     if (handler != null)
         handler(this, e);
 }
Пример #2
0
        void Parcels_SimParcelsDownloaded(object sender, SimParcelsDownloadedEventArgs e)
        {
            if (gotallparcels == true)
                return;

            gotallparcels = true;
            Logger.Log("Got all parcels, writing to db", Helpers.LogLevel.Info);

            ThreadPool.QueueUserWorkItem(sync =>
            {
                e.Parcels.ForEach(delegate(KeyValuePair<int, Parcel> kvp)
                {
                    Dictionary<string, string> parameters = new Dictionary<string, string>();
                    parameters.Add("Grid", MainClass.db.gridKey.ToString());
                    parameters.Add("Region", e.Simulator.Handle.ToString());
                    parameters.Add("ParcelID", kvp.Key.ToString());
                    parameters.Add("Description", kvp.Value.Desc);
                    parameters.Add("Name", kvp.Value.Name);
                    parameters.Add("Size", kvp.Value.Area.ToString());
                    parameters.Add("Dwell", kvp.Value.Dwell.ToString());
                    parameters.Add("Owner", MainClass.db.compressUUID(kvp.Value.OwnerID));
                    parameters.Add("GroupID", MainClass.db.compressUUID(kvp.Value.GroupID));
                    parameters.Add("ParcelFlags", ((int)kvp.Value.Flags).ToString());

                    if (kvp.Value.AuthBuyerID == UUID.Zero)
                    {
                        parameters.Add("SalePrice", kvp.Value.SalePrice.ToString());
                    }
                    else
                    {
                        parameters.Add("SalePrice", "-1");
                    }

                    MainClass.db.genericReplaceInto("Parcel", parameters, true);
                });
            });
        }
Пример #3
0
 public virtual void Parcels_OnSimParcelsDownloaded(object sender, SimParcelsDownloadedEventArgs e) { OnEvent("On-Sim-Parcels-Downloaded", paramNamesOnSimParcelsDownloaded, paramTypesOnSimParcelsDownloaded, e); }
Пример #4
0
 void Parcels_SimParcelsDownloaded(object sender, SimParcelsDownloadedEventArgs e)
 {
     Logger.Log("All Parcels download",Helpers.LogLevel.Debug);
     updateparcelmap(e.ParcelMap);
 }
Пример #5
0
 public override void Parcels_OnSimParcelsDownloaded(object sender,
                                                     SimParcelsDownloadedEventArgs e)
 {
     EnsureSimulator(e.Simulator);
     //base.Parcels_OnSimParcelsDownloaded(simulator, simParcels, parcelMap);
 }