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.cs15
1 files changed, 14 insertions, 1 deletions
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs
index 661b457..c531e8a 100644
--- a/OpenSim/Framework/RegionInfo.cs
+++ b/OpenSim/Framework/RegionInfo.cs
@@ -40,6 +40,7 @@ using OpenMetaverse.StructuredData;
40 40
41namespace OpenSim.Framework 41namespace 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;
@@ -644,6 +646,9 @@ namespace OpenSim.Framework
644 string location = String.Format("{0},{1}", m_regionLocX, m_regionLocY); 646 string location = String.Format("{0},{1}", m_regionLocX, m_regionLocY);
645 config.Set("Location", location); 647 config.Set("Location", location);
646 648
649 if (DataStore != String.Empty)
650 config.Set("Datastore", DataStore);
651
647 config.Set("InternalAddress", m_internalEndPoint.Address.ToString()); 652 config.Set("InternalAddress", m_internalEndPoint.Address.ToString());
648 config.Set("InternalPort", m_internalEndPoint.Port); 653 config.Set("InternalPort", m_internalEndPoint.Port);
649 654
@@ -829,6 +834,9 @@ namespace OpenSim.Framework
829 case "sim_location_y": 834 case "sim_location_y":
830 m_regionLocY = (uint) configuration_result; 835 m_regionLocY = (uint) configuration_result;
831 break; 836 break;
837 case "datastore":
838 DataStore = (string) configuration_result;
839 break;
832 case "internal_ip_address": 840 case "internal_ip_address":
833 IPAddress address = (IPAddress) configuration_result; 841 IPAddress address = (IPAddress) configuration_result;
834 m_internalEndPoint = new IPEndPoint(address, 0); 842 m_internalEndPoint = new IPEndPoint(address, 0);
@@ -979,6 +987,11 @@ namespace OpenSim.Framework
979 return regionInfo; 987 return regionInfo;
980 } 988 }
981 989
990 public int getInternalEndPointPort()
991 {
992 return m_internalEndPoint.Port;
993 }
994
982 public Dictionary<string, object> ToKeyValuePairs() 995 public Dictionary<string, object> ToKeyValuePairs()
983 { 996 {
984 Dictionary<string, object> kvp = new Dictionary<string, object>(); 997 Dictionary<string, object> kvp = new Dictionary<string, object>();
@@ -997,4 +1010,4 @@ namespace OpenSim.Framework
997 return kvp; 1010 return kvp;
998 } 1011 }
999 } 1012 }
1000} \ No newline at end of file 1013}