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 8131089..fcf1896 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;
@@ -685,6 +687,9 @@ namespace OpenSim.Framework
685 string location = String.Format("{0},{1}", m_regionLocX, m_regionLocY); 687 string location = String.Format("{0},{1}", m_regionLocX, m_regionLocY);
686 config.Set("Location", location); 688 config.Set("Location", location);
687 689
690 if (DataStore != String.Empty)
691 config.Set("Datastore", DataStore);
692
688 config.Set("InternalAddress", m_internalEndPoint.Address.ToString()); 693 config.Set("InternalAddress", m_internalEndPoint.Address.ToString());
689 config.Set("InternalPort", m_internalEndPoint.Port); 694 config.Set("InternalPort", m_internalEndPoint.Port);
690 695
@@ -884,6 +889,9 @@ namespace OpenSim.Framework
884 case "sim_location_y": 889 case "sim_location_y":
885 m_regionLocY = (uint) configuration_result; 890 m_regionLocY = (uint) configuration_result;
886 break; 891 break;
892 case "datastore":
893 DataStore = (string) configuration_result;
894 break;
887 case "internal_ip_address": 895 case "internal_ip_address":
888 IPAddress address = (IPAddress) configuration_result; 896 IPAddress address = (IPAddress) configuration_result;
889 m_internalEndPoint = new IPEndPoint(address, 0); 897 m_internalEndPoint = new IPEndPoint(address, 0);
@@ -1034,6 +1042,11 @@ namespace OpenSim.Framework
1034 return regionInfo; 1042 return regionInfo;
1035 } 1043 }
1036 1044
1045 public int getInternalEndPointPort()
1046 {
1047 return m_internalEndPoint.Port;
1048 }
1049
1037 public Dictionary<string, object> ToKeyValuePairs() 1050 public Dictionary<string, object> ToKeyValuePairs()
1038 { 1051 {
1039 Dictionary<string, object> kvp = new Dictionary<string, object>(); 1052 Dictionary<string, object> kvp = new Dictionary<string, object>();
@@ -1052,4 +1065,4 @@ namespace OpenSim.Framework
1052 return kvp; 1065 return kvp;
1053 } 1066 }
1054 } 1067 }
1055} \ No newline at end of file 1068}