From eac9bc68890cff90c9be45fe8ddfd3ea5f4fade2 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Mon, 10 Dec 2007 19:16:50 +0000 Subject: * More refactoring to prepare for draw distance based agent sim notification. --- OpenSim/Framework/RegionInfo.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs index ff5c204..bd896bd 100644 --- a/OpenSim/Framework/RegionInfo.cs +++ b/OpenSim/Framework/RegionInfo.cs @@ -64,6 +64,16 @@ namespace OpenSim.Framework m_internalEndPoint = new IPEndPoint(IPAddress.Parse("0.0.0.0"), (int) port); } + public SimpleRegionInfo(RegionInfo ConvertFrom) + { + m_regionLocX = ConvertFrom.RegionLocX; + m_regionLocY = ConvertFrom.RegionLocY; + m_internalEndPoint = ConvertFrom.InternalEndPoint; + m_externalHostName = ConvertFrom.ExternalHostName; + m_remotingPort = ConvertFrom.RemotingPort; + RemotingAddress = ConvertFrom.RemotingAddress; + RegionID = LLUUID.Zero; + } public LLUUID RegionID = LLUUID.Zero; @@ -238,6 +248,16 @@ namespace OpenSim.Framework RemotingAddress = ConvertFrom.RemotingAddress; RegionID = LLUUID.Zero; } + public RegionInfo(SimpleRegionInfo ConvertFrom) + { + m_regionLocX = ConvertFrom.RegionLocX; + m_regionLocY = ConvertFrom.RegionLocY; + m_internalEndPoint = ConvertFrom.InternalEndPoint; + m_externalHostName = ConvertFrom.ExternalHostName; + m_remotingPort = ConvertFrom.RemotingPort; + RemotingAddress = ConvertFrom.RemotingAddress; + RegionID = LLUUID.Zero; + } //not in use, should swap to nini though. public void LoadFromNiniSource(IConfigSource source) { -- cgit v1.1