aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data')
-rw-r--r--OpenSim/Data/RegionProfileData.cs8
1 files changed, 8 insertions, 0 deletions
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
285 return RegionInfo.Create(UUID, regionName, regionLocX, regionLocY, serverIP, httpPort, serverPort, remotingPort); 285 return RegionInfo.Create(UUID, regionName, regionLocX, regionLocY, serverIP, httpPort, serverPort, remotingPort);
286 } 286 }
287 287
288 public static RegionProfileData FromRegionInfo( RegionInfo regionInfo )
289 {
290 return Create(regionInfo.RegionID, regionInfo.RegionName, regionInfo.RegionLocX,
291 regionInfo.RegionLocY, regionInfo.ExternalHostName,
292 (uint) regionInfo.ExternalEndPoint.Port, regionInfo.HttpPort, regionInfo.RemotingPort,
293 regionInfo.ServerURI);
294 }
295
288 public static RegionProfileData Create(UUID regionID, string regionName, uint locX, uint locY, string externalHostName, uint regionPort, uint httpPort, uint remotingPort, string serverUri) 296 public static RegionProfileData Create(UUID regionID, string regionName, uint locX, uint locY, string externalHostName, uint regionPort, uint httpPort, uint remotingPort, string serverUri)
289 { 297 {
290 RegionProfileData regionProfile; 298 RegionProfileData regionProfile;