From 64a98c736848de6099254f23483058668273c1a5 Mon Sep 17 00:00:00 2001 From: gareth Date: Mon, 14 May 2007 03:13:47 +0000 Subject: Finished off adding the new management API to gridserver Updated VersionInfo.cs finally Updated prebuild and rebuilt nant build files Completed Management agent basics --- ExportBot/Commands/ParcelInfoCommand.cs | 62 --------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 ExportBot/Commands/ParcelInfoCommand.cs (limited to 'ExportBot/Commands/ParcelInfoCommand.cs') diff --git a/ExportBot/Commands/ParcelInfoCommand.cs b/ExportBot/Commands/ParcelInfoCommand.cs deleted file mode 100644 index e4108a9..0000000 --- a/ExportBot/Commands/ParcelInfoCommand.cs +++ /dev/null @@ -1,62 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Threading; -using libsecondlife; -using libsecondlife.Utilities; - -namespace libsecondlife.TestClient -{ - public class ParcelInfoCommand : Command - { - private ParcelDownloader ParcelDownloader; - private ManualResetEvent ParcelsDownloaded = new ManualResetEvent(false); - private int ParcelCount = 0; - - public ParcelInfoCommand(TestClient testClient) - { - Name = "parcelinfo"; - Description = "Prints out info about all the parcels in this simulator"; - - ParcelDownloader = new ParcelDownloader(testClient); - ParcelDownloader.OnParcelsDownloaded += new ParcelDownloader.ParcelsDownloadedCallback(Parcels_OnParcelsDownloaded); - testClient.Network.OnDisconnected += new NetworkManager.DisconnectedCallback(Network_OnDisconnected); - } - - public override string Execute(string[] args, LLUUID fromAgentID) - { - ParcelDownloader.DownloadSimParcels(Client.Network.CurrentSim); - - ParcelsDownloaded.Reset(); - ParcelsDownloaded.WaitOne(20000, false); - - if (Client.Network.CurrentSim != null) - return "Downloaded information for " + ParcelCount + " parcels in " + Client.Network.CurrentSim.Name; - else - return String.Empty; - } - - void Parcels_OnParcelsDownloaded(Simulator simulator, Dictionary Parcels, int[,] map) - { - foreach (KeyValuePair parcel in Parcels) - { - WaterType type = ParcelDownloader.GetWaterType(map, parcel.Value.LocalID); - float delta = ParcelDownloader.GetHeightRange(map, parcel.Value.LocalID); - int deviation = ParcelDownloader.GetRectangularDeviation(parcel.Value.AABBMin, parcel.Value.AABBMax, - parcel.Value.Area); - - Console.WriteLine("Parcels[{0}]: Name: \"{1}\", Description: \"{2}\" ACL Count: {3}, " + - "Location: {4}, Height Range: {5}, Shape Deviation: {6}", parcel.Key, parcel.Value.Name, - parcel.Value.Desc, parcel.Value.AccessList.Count, type.ToString(), delta, deviation); - } - - ParcelCount = Parcels.Count; - - ParcelsDownloaded.Set(); - } - - void Network_OnDisconnected(NetworkManager.DisconnectType reason, string message) - { - ParcelsDownloaded.Set(); - } - } -} -- cgit v1.1