aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/RegionInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 5ba3863..7a3e67f 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;
@@ -643,6 +645,9 @@ namespace OpenSim.Framework
643 string location = String.Format("{0},{1}", m_regionLocX, m_regionLocY); 645 string location = String.Format("{0},{1}", m_regionLocX, m_regionLocY);
644 config.Set("Location", location); 646 config.Set("Location", location);
645 647
648 if (DataStore != String.Empty)
649 config.Set("Datastore", DataStore);
650
646 config.Set("InternalAddress", m_internalEndPoint.Address.ToString()); 651 config.Set("InternalAddress", m_internalEndPoint.Address.ToString());
647 config.Set("InternalPort", m_internalEndPoint.Port); 652 config.Set("InternalPort", m_internalEndPoint.Port);
648 653
@@ -828,6 +833,9 @@ namespace OpenSim.Framework
828 case "sim_location_y": 833 case "sim_location_y":
829 m_regionLocY = (uint) configuration_result; 834 m_regionLocY = (uint) configuration_result;
830 break; 835 break;
836 case "datastore":
837 DataStore = (string) configuration_result;
838 break;
831 case "internal_ip_address": 839 case "internal_ip_address":
832 IPAddress address = (IPAddress) configuration_result; 840 IPAddress address = (IPAddress) configuration_result;
833 m_internalEndPoint = new IPEndPoint(address, 0); 841 m_internalEndPoint = new IPEndPoint(address, 0);
@@ -978,6 +986,11 @@ namespace OpenSim.Framework
978 return regionInfo; 986 return regionInfo;
979 } 987 }
980 988
989 public int getInternalEndPointPort()
990 {
991 return m_internalEndPoint.Port;
992 }
993
981 public Dictionary<string, object> ToKeyValuePairs() 994 public Dictionary<string, object> ToKeyValuePairs()
982 { 995 {
983 Dictionary<string, object> kvp = new Dictionary<string, object>(); 996 Dictionary<string, object> kvp = new Dictionary<string, object>();
@@ -996,4 +1009,4 @@ namespace OpenSim.Framework
996 return kvp; 1009 return kvp;
997 } 1010 }
998 } 1011 }
999} \ No newline at end of file 1012}