LIBOMV-686 Implements new event patterns based on the Microsoft Framework Design Guidelines in ParcelManager
* Changes some public method names to match patterns used through library, namely requests that have an event are named with Request as a prefix * Add Key2Name TestClient command for resolving group and avatar names based on a UUID * BREAKING CHANGE * this is a major shift in the way events are internally handled. git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3151 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -23,14 +23,14 @@ namespace OpenMetaverse.TestClient
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
string result;
|
||||
|
||||
ParcelManager.SimParcelsDownloaded del = delegate(Simulator simulator, InternalDictionary<int, Parcel> simParcels, int[,] parcelMap)
|
||||
EventHandler<SimParcelsDownloadedEventArgs> del = delegate(object sender, SimParcelsDownloadedEventArgs e)
|
||||
{
|
||||
ParcelsDownloaded.Set();
|
||||
};
|
||||
|
||||
|
||||
ParcelsDownloaded.Reset();
|
||||
Client.Parcels.OnSimParcelsDownloaded += del;
|
||||
Client.Parcels.SimParcelsDownloaded += del;
|
||||
Client.Parcels.RequestAllSimParcels(Client.Network.CurrentSim);
|
||||
|
||||
if (Client.Network.CurrentSim.IsParcelMapFull())
|
||||
@@ -45,16 +45,6 @@ namespace OpenMetaverse.TestClient
|
||||
{
|
||||
sb.AppendFormat("Parcel[{0}]: Name: \"{1}\", Description: \"{2}\" ACLBlacklist Count: {3}, ACLWhiteList Count: {5} Traffic: {4}" + System.Environment.NewLine,
|
||||
parcel.LocalID, parcel.Name, parcel.Desc, parcel.AccessBlackList.Count, parcel.Dwell, parcel.AccessWhiteList.Count);
|
||||
//foreach (ParcelManager.ParcelAccessEntry white in parcel.AccessWhiteList)
|
||||
//{
|
||||
// if(white.AgentID != UUID.Zero)
|
||||
// sb.AppendFormat("\tAllowed Avatar {0}" + System.Environment.NewLine, white.AgentID);
|
||||
//}
|
||||
//foreach (ParcelManager.ParcelAccessEntry black in parcel.AccessBlackList)
|
||||
//{
|
||||
// if(black.AgentID != UUID.Zero)
|
||||
// sb.AppendFormat("\t Banned Avatar {0}" + System.Environment.NewLine, black.AgentID);
|
||||
//}
|
||||
});
|
||||
|
||||
result = sb.ToString();
|
||||
@@ -62,7 +52,7 @@ namespace OpenMetaverse.TestClient
|
||||
else
|
||||
result = "Failed to retrieve information on all the simulator parcels";
|
||||
|
||||
Client.Parcels.OnSimParcelsDownloaded -= del;
|
||||
Client.Parcels.SimParcelsDownloaded -= del;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user