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.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs
index 1de30af..b9e84ac 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;
@@ -103,6 +104,7 @@ namespace OpenSim.Framework
103 104
104 public bool commFailTF = false; 105 public bool commFailTF = false;
105 public ConfigurationMember configMember; 106 public ConfigurationMember configMember;
107 public string DataStore = String.Empty;
106 public string RegionFile = String.Empty; 108 public string RegionFile = String.Empty;
107 public bool isSandbox = false; 109 public bool isSandbox = false;
108 public bool Persistent = true; 110 public bool Persistent = true;
@@ -798,6 +800,8 @@ namespace OpenSim.Framework
798 string location = String.Format("{0},{1}", RegionLocX, RegionLocY); 800 string location = String.Format("{0},{1}", RegionLocX, RegionLocY);
799 config.Set("Location", location); 801 config.Set("Location", location);
800 802
803 if (DataStore != String.Empty)
804 config.Set("Datastore", DataStore);
801 if (RegionSizeX != Constants.RegionSize || RegionSizeY != Constants.RegionSize) 805 if (RegionSizeX != Constants.RegionSize || RegionSizeY != Constants.RegionSize)
802 { 806 {
803 config.Set("SizeX", RegionSizeX); 807 config.Set("SizeX", RegionSizeX);
@@ -1044,6 +1048,9 @@ namespace OpenSim.Framework
1044 case "sim_size_z": 1048 case "sim_size_z":
1045 RegionSizeZ = (uint) configuration_result; 1049 RegionSizeZ = (uint) configuration_result;
1046 break; 1050 break;
1051 case "datastore":
1052 DataStore = (string) configuration_result;
1053 break;
1047 case "internal_ip_address": 1054 case "internal_ip_address":
1048 IPAddress address = (IPAddress) configuration_result; 1055 IPAddress address = (IPAddress) configuration_result;
1049 m_internalEndPoint = new IPEndPoint(address, 0); 1056 m_internalEndPoint = new IPEndPoint(address, 0);
@@ -1211,5 +1218,28 @@ namespace OpenSim.Framework
1211 regionInfo.ServerURI = serverURI; 1218 regionInfo.ServerURI = serverURI;
1212 return regionInfo; 1219 return regionInfo;
1213 } 1220 }
1221
1222 public int getInternalEndPointPort()
1223 {
1224 return m_internalEndPoint.Port;
1225 }
1226
1227 public Dictionary<string, object> ToKeyValuePairs()
1228 {
1229 Dictionary<string, object> kvp = new Dictionary<string, object>();
1230 kvp["uuid"] = RegionID.ToString();
1231 kvp["locX"] = RegionLocX.ToString();
1232 kvp["locY"] = RegionLocY.ToString();
1233 kvp["external_ip_address"] = ExternalEndPoint.Address.ToString();
1234 kvp["external_port"] = ExternalEndPoint.Port.ToString();
1235 kvp["external_host_name"] = ExternalHostName;
1236 kvp["http_port"] = HttpPort.ToString();
1237 kvp["internal_ip_address"] = InternalEndPoint.Address.ToString();
1238 kvp["internal_port"] = InternalEndPoint.Port.ToString();
1239 kvp["alternate_ports"] = m_allow_alternate_ports.ToString();
1240 kvp["server_uri"] = ServerURI;
1241
1242 return kvp;
1243 }
1214 } 1244 }
1215} 1245}