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 2080a16..4bde7be 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;
@@ -661,6 +663,9 @@ namespace OpenSim.Framework
661 string location = String.Format("{0},{1}", m_regionLocX, m_regionLocY); 663 string location = String.Format("{0},{1}", m_regionLocX, m_regionLocY);
662 config.Set("Location", location); 664 config.Set("Location", location);
663 665
666 if (DataStore != String.Empty)
667 config.Set("Datastore", DataStore);
668
664 config.Set("InternalAddress", m_internalEndPoint.Address.ToString()); 669 config.Set("InternalAddress", m_internalEndPoint.Address.ToString());
665 config.Set("InternalPort", m_internalEndPoint.Port); 670 config.Set("InternalPort", m_internalEndPoint.Port);
666 671
@@ -846,6 +851,9 @@ namespace OpenSim.Framework
846 case "sim_location_y": 851 case "sim_location_y":
847 m_regionLocY = (uint) configuration_result; 852 m_regionLocY = (uint) configuration_result;
848 break; 853 break;
854 case "datastore":
855 DataStore = (string) configuration_result;
856 break;
849 case "internal_ip_address": 857 case "internal_ip_address":
850 IPAddress address = (IPAddress) configuration_result; 858 IPAddress address = (IPAddress) configuration_result;
851 m_internalEndPoint = new IPEndPoint(address, 0); 859 m_internalEndPoint = new IPEndPoint(address, 0);
@@ -996,6 +1004,11 @@ namespace OpenSim.Framework
996 return regionInfo; 1004 return regionInfo;
997 } 1005 }
998 1006
1007 public int getInternalEndPointPort()
1008 {
1009 return m_internalEndPoint.Port;
1010 }
1011
999 public Dictionary<string, object> ToKeyValuePairs() 1012 public Dictionary<string, object> ToKeyValuePairs()
1000 { 1013 {
1001 Dictionary<string, object> kvp = new Dictionary<string, object>(); 1014 Dictionary<string, object> kvp = new Dictionary<string, object>();
@@ -1014,4 +1027,4 @@ namespace OpenSim.Framework
1014 return kvp; 1027 return kvp;
1015 } 1028 }
1016 } 1029 }
1017} \ No newline at end of file 1030}