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 169b951..96f3049 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;
@@ -639,6 +641,9 @@ namespace OpenSim.Framework
639 string location = String.Format("{0},{1}", m_regionLocX, m_regionLocY); 641 string location = String.Format("{0},{1}", m_regionLocX, m_regionLocY);
640 config.Set("Location", location); 642 config.Set("Location", location);
641 643
644 if (DataStore != String.Empty)
645 config.Set("Datastore", DataStore);
646
642 config.Set("InternalAddress", m_internalEndPoint.Address.ToString()); 647 config.Set("InternalAddress", m_internalEndPoint.Address.ToString());
643 config.Set("InternalPort", m_internalEndPoint.Port); 648 config.Set("InternalPort", m_internalEndPoint.Port);
644 649
@@ -824,6 +829,9 @@ namespace OpenSim.Framework
824 case "sim_location_y": 829 case "sim_location_y":
825 m_regionLocY = (uint) configuration_result; 830 m_regionLocY = (uint) configuration_result;
826 break; 831 break;
832 case "datastore":
833 DataStore = (string) configuration_result;
834 break;
827 case "internal_ip_address": 835 case "internal_ip_address":
828 IPAddress address = (IPAddress) configuration_result; 836 IPAddress address = (IPAddress) configuration_result;
829 m_internalEndPoint = new IPEndPoint(address, 0); 837 m_internalEndPoint = new IPEndPoint(address, 0);
@@ -974,6 +982,11 @@ namespace OpenSim.Framework
974 return regionInfo; 982 return regionInfo;
975 } 983 }
976 984
985 public int getInternalEndPointPort()
986 {
987 return m_internalEndPoint.Port;
988 }
989
977 public Dictionary<string, object> ToKeyValuePairs() 990 public Dictionary<string, object> ToKeyValuePairs()
978 { 991 {
979 Dictionary<string, object> kvp = new Dictionary<string, object>(); 992 Dictionary<string, object> kvp = new Dictionary<string, object>();
@@ -992,4 +1005,4 @@ namespace OpenSim.Framework
992 return kvp; 1005 return kvp;
993 } 1006 }
994 } 1007 }
995} \ No newline at end of file 1008}