diff options
author | lbsa71 | 2009-03-10 09:05:06 +0000 |
---|---|---|
committer | lbsa71 | 2009-03-10 09:05:06 +0000 |
commit | 1b34b94331ca810ed53669699abcff3a6a99de83 (patch) | |
tree | 9a4f1c55c287f733b373a46c5a9aa44c0932f5bf /OpenSim/Framework/RegionInfo.cs | |
parent | From: Alan Webb <alan_webb@us.ibm.com> (diff) | |
download | opensim-SC_OLD-1b34b94331ca810ed53669699abcff3a6a99de83.zip opensim-SC_OLD-1b34b94331ca810ed53669699abcff3a6a99de83.tar.gz opensim-SC_OLD-1b34b94331ca810ed53669699abcff3a6a99de83.tar.bz2 opensim-SC_OLD-1b34b94331ca810ed53669699abcff3a6a99de83.tar.xz |
* Refactored out Create() methods to ensure proper transformation between RegionProfileData and RegionInfo
* Created ToRegionInfo method, still not using it pending peer review.
* This is a preparatory commit for a subsequent login service refactoring.
Diffstat (limited to 'OpenSim/Framework/RegionInfo.cs')
-rw-r--r-- | OpenSim/Framework/RegionInfo.cs | 13 |
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 | } |