diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/RegionInfo.cs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs index a505524..1b2f681 100644 --- a/OpenSim/Framework/RegionInfo.cs +++ b/OpenSim/Framework/RegionInfo.cs | |||
@@ -40,6 +40,7 @@ using OpenMetaverse.StructuredData; | |||
40 | 40 | ||
41 | namespace OpenSim.Framework | 41 | namespace OpenSim.Framework |
42 | { | 42 | { |
43 | [Serializable] | ||
43 | public class RegionLightShareData : ICloneable | 44 | public class RegionLightShareData : ICloneable |
44 | { | 45 | { |
45 | public bool valid = false; | 46 | public bool valid = false; |
@@ -102,6 +103,7 @@ namespace OpenSim.Framework | |||
102 | 103 | ||
103 | public bool commFailTF = false; | 104 | public bool commFailTF = false; |
104 | public ConfigurationMember configMember; | 105 | public ConfigurationMember configMember; |
106 | public string DataStore = String.Empty; | ||
105 | public string RegionFile = String.Empty; | 107 | public string RegionFile = String.Empty; |
106 | public bool isSandbox = false; | 108 | public bool isSandbox = false; |
107 | public bool Persistent = true; | 109 | public bool Persistent = true; |
@@ -649,6 +651,9 @@ namespace OpenSim.Framework | |||
649 | string location = String.Format("{0},{1}", m_regionLocX, m_regionLocY); | 651 | string location = String.Format("{0},{1}", m_regionLocX, m_regionLocY); |
650 | config.Set("Location", location); | 652 | config.Set("Location", location); |
651 | 653 | ||
654 | if (DataStore != String.Empty) | ||
655 | config.Set("Datastore", DataStore); | ||
656 | |||
652 | config.Set("InternalAddress", m_internalEndPoint.Address.ToString()); | 657 | config.Set("InternalAddress", m_internalEndPoint.Address.ToString()); |
653 | config.Set("InternalPort", m_internalEndPoint.Port); | 658 | config.Set("InternalPort", m_internalEndPoint.Port); |
654 | 659 | ||
@@ -834,6 +839,9 @@ namespace OpenSim.Framework | |||
834 | case "sim_location_y": | 839 | case "sim_location_y": |
835 | m_regionLocY = (uint) configuration_result; | 840 | m_regionLocY = (uint) configuration_result; |
836 | break; | 841 | break; |
842 | case "datastore": | ||
843 | DataStore = (string) configuration_result; | ||
844 | break; | ||
837 | case "internal_ip_address": | 845 | case "internal_ip_address": |
838 | IPAddress address = (IPAddress) configuration_result; | 846 | IPAddress address = (IPAddress) configuration_result; |
839 | m_internalEndPoint = new IPEndPoint(address, 0); | 847 | m_internalEndPoint = new IPEndPoint(address, 0); |
@@ -984,6 +992,11 @@ namespace OpenSim.Framework | |||
984 | return regionInfo; | 992 | return regionInfo; |
985 | } | 993 | } |
986 | 994 | ||
995 | public int getInternalEndPointPort() | ||
996 | { | ||
997 | return m_internalEndPoint.Port; | ||
998 | } | ||
999 | |||
987 | public Dictionary<string, object> ToKeyValuePairs() | 1000 | public Dictionary<string, object> ToKeyValuePairs() |
988 | { | 1001 | { |
989 | Dictionary<string, object> kvp = new Dictionary<string, object>(); | 1002 | Dictionary<string, object> kvp = new Dictionary<string, object>(); |
@@ -1002,4 +1015,4 @@ namespace OpenSim.Framework | |||
1002 | return kvp; | 1015 | return kvp; |
1003 | } | 1016 | } |
1004 | } | 1017 | } |
1005 | } \ No newline at end of file | 1018 | } |