From 44a7db0e44d175fcb854b7bfd11d3b97ed6b934c Mon Sep 17 00:00:00 2001 From: Tleiades Hax Date: Wed, 17 Oct 2007 09:36:11 +0000 Subject: Renamed SimProfileData to RegionProfileData --- OpenSim/Grid/GridServer/GridManager.cs | 40 +++++++++++++++++----------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'OpenSim/Grid/GridServer/GridManager.cs') diff --git a/OpenSim/Grid/GridServer/GridManager.cs b/OpenSim/Grid/GridServer/GridManager.cs index 64e8e4b..81197fd 100644 --- a/OpenSim/Grid/GridServer/GridManager.cs +++ b/OpenSim/Grid/GridServer/GridManager.cs @@ -122,7 +122,7 @@ namespace OpenSim.Grid.GridServer /// /// A UUID key of the region to return /// A SimProfileData for the region - public SimProfileData getRegion(LLUUID uuid) + public RegionProfileData getRegion(LLUUID uuid) { foreach(KeyValuePair kvp in _plugins) { try @@ -142,7 +142,7 @@ namespace OpenSim.Grid.GridServer /// /// A regionHandle of the region to return /// A SimProfileData for the region - public SimProfileData getRegion(ulong handle) + public RegionProfileData getRegion(ulong handle) { foreach (KeyValuePair kvp in _plugins) { @@ -158,16 +158,16 @@ namespace OpenSim.Grid.GridServer return null; } - public Dictionary getRegions(uint xmin, uint ymin, uint xmax, uint ymax) + public Dictionary getRegions(uint xmin, uint ymin, uint xmax, uint ymax) { - Dictionary regions = new Dictionary(); + Dictionary regions = new Dictionary(); foreach (KeyValuePair kvp in _plugins) { try { - SimProfileData[] neighbours = kvp.Value.GetProfilesInRange(xmin, ymin, xmax, ymax); - foreach (SimProfileData neighbour in neighbours) + RegionProfileData[] neighbours = kvp.Value.GetProfilesInRange(xmin, ymin, xmax, ymax); + foreach (RegionProfileData neighbour in neighbours) { regions[neighbour.regionHandle] = neighbour; } @@ -191,8 +191,8 @@ namespace OpenSim.Grid.GridServer public string GetXMLNeighbours(ulong reqhandle) { string response = ""; - SimProfileData central_region = getRegion(reqhandle); - SimProfileData neighbour; + RegionProfileData central_region = getRegion(reqhandle); + RegionProfileData neighbour; for (int x = -1; x < 2; x++) for (int y = -1; y < 2; y++) { if (getRegion(Util.UIntsToLong((uint)((central_region.regionLocX + x) * 256), (uint)(central_region.regionLocY + y) * 256)) != null) @@ -223,7 +223,7 @@ namespace OpenSim.Grid.GridServer Hashtable responseData = new Hashtable(); response.Value = responseData; - SimProfileData TheSim = null; + RegionProfileData TheSim = null; Hashtable requestData = (Hashtable)request.Params[0]; string myword; if (requestData.ContainsKey("UUID")) @@ -254,7 +254,7 @@ namespace OpenSim.Grid.GridServer myword = "connection"; } - TheSim = new SimProfileData(); + TheSim = new RegionProfileData(); TheSim.regionRecvKey = config.SimRecvKey; TheSim.regionSendKey = config.SimSendKey; @@ -325,16 +325,16 @@ namespace OpenSim.Grid.GridServer ArrayList SimNeighboursData = new ArrayList(); - SimProfileData neighbour; + RegionProfileData neighbour; Hashtable NeighbourBlock; bool fastMode = false; // Only compatible with MySQL right now if (fastMode) { - Dictionary neighbours = getRegions(TheSim.regionLocX - 1, TheSim.regionLocY - 1, TheSim.regionLocX + 1, TheSim.regionLocY + 1); + Dictionary neighbours = getRegions(TheSim.regionLocX - 1, TheSim.regionLocY - 1, TheSim.regionLocX + 1, TheSim.regionLocY + 1); - foreach (KeyValuePair aSim in neighbours) + foreach (KeyValuePair aSim in neighbours) { NeighbourBlock = new Hashtable(); NeighbourBlock["sim_ip"] = Util.GetHostFromDNS(aSim.Value.serverIP.ToString()).ToString(); @@ -395,7 +395,7 @@ namespace OpenSim.Grid.GridServer { Hashtable requestData = (Hashtable)request.Params[0]; Hashtable responseData = new Hashtable(); - SimProfileData simData = null; + RegionProfileData simData = null; if (requestData.ContainsKey("region_UUID")) { simData = getRegion(new LLUUID((string)requestData["region_UUID"])); @@ -461,9 +461,9 @@ namespace OpenSim.Grid.GridServer if (fastMode) { - Dictionary neighbours = getRegions((uint)xmin, (uint)ymin, (uint)xmax, (uint)ymax); + Dictionary neighbours = getRegions((uint)xmin, (uint)ymin, (uint)xmax, (uint)ymax); - foreach (KeyValuePair aSim in neighbours) + foreach (KeyValuePair aSim in neighbours) { Hashtable simProfileBlock = new Hashtable(); simProfileBlock["x"] = aSim.Value.regionLocX.ToString(); @@ -489,7 +489,7 @@ namespace OpenSim.Grid.GridServer } else { - SimProfileData simProfile; + RegionProfileData simProfile; for (int x = xmin; x < xmax+1; x++) { for (int y = ymin; y < ymax+1; y++) @@ -564,7 +564,7 @@ namespace OpenSim.Grid.GridServer { string respstring = String.Empty; - SimProfileData TheSim; + RegionProfileData TheSim; LLUUID UUID = new LLUUID(param); TheSim = getRegion(UUID); @@ -598,11 +598,11 @@ namespace OpenSim.Grid.GridServer public string RestSetSimMethod(string request, string path, string param) { Console.WriteLine("Processing region update via REST method"); - SimProfileData TheSim; + RegionProfileData TheSim; TheSim = getRegion(new LLUUID(param)); if ((TheSim) == null) { - TheSim = new SimProfileData(); + TheSim = new RegionProfileData(); LLUUID UUID = new LLUUID(param); TheSim.UUID = UUID; TheSim.regionRecvKey = config.SimRecvKey; -- cgit v1.1