aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/RegionInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/RegionInfo.cs')
-rw-r--r--OpenSim/Framework/RegionInfo.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs
index 0929699..c958c68 100644
--- a/OpenSim/Framework/RegionInfo.cs
+++ b/OpenSim/Framework/RegionInfo.cs
@@ -675,5 +675,18 @@ namespace OpenSim.Framework
675 if (args["proxy_url"] != null) 675 if (args["proxy_url"] != null)
676 proxyUrl = args["proxy_url"].AsString(); 676 proxyUrl = args["proxy_url"].AsString();
677 } 677 }
678
679 public static RegionInfo Create(UUID regionID, string regionName, uint regX, uint regY, string externalHostName, uint httpPort, uint simPort, uint remotingPort)
680 {
681 RegionInfo regionInfo;
682 IPEndPoint neighbourInternalEndPoint = new IPEndPoint(Util.GetHostFromDNS(externalHostName), (int)simPort);
683 regionInfo = new RegionInfo(regX, regY, neighbourInternalEndPoint, externalHostName);
684 regionInfo.RemotingPort = remotingPort;
685 regionInfo.RemotingAddress = externalHostName;
686 regionInfo.HttpPort = httpPort;
687 regionInfo.RegionID = regionID;
688 regionInfo.RegionName = regionName;
689 return regionInfo;
690 }
678 } 691 }
679} 692}