From 0df0258087e18757a77514ac4cba8a50e01b27d5 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Tue, 10 Mar 2009 12:11:19 +0000 Subject: *** POTENTIAL BREAKAGE *** * Finally got to the point where I could pull up the CustomiseResponse function. Major de-duplication. * Introduced FromRegionInfo on RegionProfileData * This revision needs both grid and standalone testing galore. Work in progress! --- OpenSim/Data/RegionProfileData.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'OpenSim/Data') diff --git a/OpenSim/Data/RegionProfileData.cs b/OpenSim/Data/RegionProfileData.cs index 5476233..26b65de 100644 --- a/OpenSim/Data/RegionProfileData.cs +++ b/OpenSim/Data/RegionProfileData.cs @@ -285,6 +285,14 @@ namespace OpenSim.Data return RegionInfo.Create(UUID, regionName, regionLocX, regionLocY, serverIP, httpPort, serverPort, remotingPort); } + public static RegionProfileData FromRegionInfo( RegionInfo regionInfo ) + { + return Create(regionInfo.RegionID, regionInfo.RegionName, regionInfo.RegionLocX, + regionInfo.RegionLocY, regionInfo.ExternalHostName, + (uint) regionInfo.ExternalEndPoint.Port, regionInfo.HttpPort, regionInfo.RemotingPort, + regionInfo.ServerURI); + } + public static RegionProfileData Create(UUID regionID, string regionName, uint locX, uint locY, string externalHostName, uint regionPort, uint httpPort, uint remotingPort, string serverUri) { RegionProfileData regionProfile; -- cgit v1.1