From 375163a6fece8b3a57c7555246abe8338223a599 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Tue, 29 Apr 2008 14:04:55 +0000 Subject: * Spring cleaning. * Added new generic "Location" class to handle 2D integer locations. Going to use it to replace all RegionHandle and X,Y coordinate references throughout the entire project. You have been warned. --- OpenSim/Framework/SerializableRegionInfo.cs | 98 +++++++++++------------------ 1 file changed, 35 insertions(+), 63 deletions(-) (limited to 'OpenSim/Framework/SerializableRegionInfo.cs') diff --git a/OpenSim/Framework/SerializableRegionInfo.cs b/OpenSim/Framework/SerializableRegionInfo.cs index 2c73da8..97aa8db 100644 --- a/OpenSim/Framework/SerializableRegionInfo.cs +++ b/OpenSim/Framework/SerializableRegionInfo.cs @@ -35,6 +35,28 @@ namespace OpenSim.Framework [Serializable] public class SearializableRegionInfo { + public bool m_allow_alternate_ports; + protected string m_externalHostName; + + /// + /// The port by which http communication occurs with the region (most noticeably, CAPS communication) + /// + /// FIXME: Defaulting to 9000 temporarily (on the basis that this is the http port most region + /// servers are running) until the revision in which this change is made propogates around grids. + /// + protected uint m_httpPort = 9000; + + protected IPEndPoint m_internalEndPoint; + protected Guid m_originRegionID = LLUUID.Zero.UUID; + protected string m_proxyUrl; + protected uint? m_regionLocX; + protected uint? m_regionLocY; + protected string m_regionName; + public uint m_remotingPort; + protected string m_serverURI; + public Guid RegionID = LLUUID.Zero.UUID; + public string RemotingAddress; + /// /// This is a serializable version of RegionInfo /// @@ -52,7 +74,7 @@ namespace OpenSim.Framework m_httpPort = ConvertFrom.HttpPort; m_allow_alternate_ports = ConvertFrom.m_allow_alternate_ports; RemotingAddress = ConvertFrom.RemotingAddress; - m_proxyUrl = ConvertFrom.proxyUrl; + m_proxyUrl = ConvertFrom.proxyUrl; OriginRegionID = ConvertFrom.originRegionID; RegionName = ConvertFrom.RegionName; ServerURI = ConvertFrom.ServerURI; @@ -77,31 +99,17 @@ namespace OpenSim.Framework m_internalEndPoint = new IPEndPoint(IPAddress.Parse("0.0.0.0"), (int) port); } - public Guid RegionID = LLUUID.Zero.UUID; - - public uint m_remotingPort; public uint RemotingPort { get { return m_remotingPort; } set { m_remotingPort = value; } } - - /// - /// The port by which http communication occurs with the region (most noticeably, CAPS communication) - /// - /// FIXME: Defaulting to 9000 temporarily (on the basis that this is the http port most region - /// servers are running) until the revision in which this change is made propogates around grids. - /// - protected uint m_httpPort = 9000; + public uint HttpPort { get { return m_httpPort; } set { m_httpPort = value; } - } - - public bool m_allow_alternate_ports; - - public string RemotingAddress; + } public IPEndPoint ExternalEndPoint { @@ -138,32 +146,24 @@ namespace OpenSim.Framework set { m_externalHostName = value.ToString(); } } - protected string m_externalHostName; - public string ExternalHostName { get { return m_externalHostName; } set { m_externalHostName = value; } } - protected IPEndPoint m_internalEndPoint; - public IPEndPoint InternalEndPoint { get { return m_internalEndPoint; } set { m_internalEndPoint = value; } } - protected uint? m_regionLocX; - public uint RegionLocX { get { return m_regionLocX.Value; } set { m_regionLocX = value; } } - protected uint? m_regionLocY; - public uint RegionLocY { get { return m_regionLocY.Value; } @@ -172,59 +172,31 @@ namespace OpenSim.Framework public ulong RegionHandle { - get { return Util.UIntsToLong((RegionLocX * (uint)Constants.RegionSize), (RegionLocY * (uint)Constants.RegionSize)); } + get { return Util.UIntsToLong((RegionLocX * (uint) Constants.RegionSize), (RegionLocY * (uint) Constants.RegionSize)); } } - protected string m_proxyUrl; public string ProxyUrl { - get - { - return m_proxyUrl; - } - set - { - m_proxyUrl = value; - } + get { return m_proxyUrl; } + set { m_proxyUrl = value; } } - protected Guid m_originRegionID = LLUUID.Zero.UUID; public LLUUID OriginRegionID { - get - { - return new LLUUID(m_originRegionID); - } - set - { - m_originRegionID = value.UUID; - } + get { return new LLUUID(m_originRegionID); } + set { m_originRegionID = value.UUID; } } - protected string m_regionName; public string RegionName { - get - { - return m_regionName; - } - set - { - m_regionName = value; - } + get { return m_regionName; } + set { m_regionName = value; } } - protected string m_serverURI; public string ServerURI { - get - { - return m_serverURI; - } - set - { - m_serverURI = value; - } + get { return m_serverURI; } + set { m_serverURI = value; } } } -} +} \ No newline at end of file -- cgit v1.1