diff options
author | lbsa71 | 2007-10-22 17:55:49 +0000 |
---|---|---|
committer | lbsa71 | 2007-10-22 17:55:49 +0000 |
commit | dd770c384c2e63cf8a1e2f522741afb8adfab4c2 (patch) | |
tree | 97bc7dacf15388d8b32639219ea51872961de2cd /OpenSim/Framework/General | |
parent | after a small misunderstanding with the match group numbers (diff) | |
download | opensim-SC_OLD-dd770c384c2e63cf8a1e2f522741afb8adfab4c2.zip opensim-SC_OLD-dd770c384c2e63cf8a1e2f522741afb8adfab4c2.tar.gz opensim-SC_OLD-dd770c384c2e63cf8a1e2f522741afb8adfab4c2.tar.bz2 opensim-SC_OLD-dd770c384c2e63cf8a1e2f522741afb8adfab4c2.tar.xz |
* Made EstateSetting static since there's only one instance, and we only need to create it once
* Now cacheing RegionInfos indefinitively; we should add a tiomeout to this cache
Diffstat (limited to 'OpenSim/Framework/General')
-rw-r--r-- | OpenSim/Framework/General/Types/RegionInfo.cs | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/OpenSim/Framework/General/Types/RegionInfo.cs b/OpenSim/Framework/General/Types/RegionInfo.cs index 8ae61fc..cab6cd7 100644 --- a/OpenSim/Framework/General/Types/RegionInfo.cs +++ b/OpenSim/Framework/General/Types/RegionInfo.cs | |||
@@ -181,12 +181,25 @@ namespace OpenSim.Framework.Types | |||
181 | public string MasterAvatarLastName = ""; | 181 | public string MasterAvatarLastName = ""; |
182 | public string MasterAvatarSandboxPassword = ""; | 182 | public string MasterAvatarSandboxPassword = ""; |
183 | 183 | ||
184 | public EstateSettings estateSettings; | 184 | // Apparently, we're applying the same estatesettings regardless of whether it's local or remote. |
185 | private static EstateSettings m_estateSettings; | ||
186 | public EstateSettings EstateSettings | ||
187 | { | ||
188 | get | ||
189 | { | ||
190 | if( m_estateSettings == null ) | ||
191 | { | ||
192 | m_estateSettings = new EstateSettings(); | ||
193 | } | ||
194 | |||
195 | return m_estateSettings; | ||
196 | } | ||
197 | |||
198 | } | ||
185 | 199 | ||
186 | public ConfigurationMember configMember; | 200 | public ConfigurationMember configMember; |
187 | public RegionInfo(string description, string filename) | 201 | public RegionInfo(string description, string filename) |
188 | { | 202 | { |
189 | estateSettings = new EstateSettings(); | ||
190 | configMember = new ConfigurationMember(filename, description, loadConfigurationOptions, handleIncomingConfiguration); | 203 | configMember = new ConfigurationMember(filename, description, loadConfigurationOptions, handleIncomingConfiguration); |
191 | configMember.performConfigurationRetrieve(); | 204 | configMember.performConfigurationRetrieve(); |
192 | } | 205 | } |
@@ -195,7 +208,7 @@ namespace OpenSim.Framework.Types | |||
195 | base(regionLocX, regionLocY, internalEndPoint, externalUri) | 208 | base(regionLocX, regionLocY, internalEndPoint, externalUri) |
196 | { | 209 | { |
197 | 210 | ||
198 | estateSettings = new EstateSettings(); | 211 | |
199 | } | 212 | } |
200 | 213 | ||
201 | //not in use, should swap to nini though. | 214 | //not in use, should swap to nini though. |