diff options
author | lbsa71 | 2007-07-09 21:03:36 +0000 |
---|---|---|
committer | lbsa71 | 2007-07-09 21:03:36 +0000 |
commit | 08a1fa3f96eee5e067475da453a3770ff15780f9 (patch) | |
tree | 1ed047e466e20dcf327f8c890efbf1779ead6ad6 /OpenSim/Region/Environment/Scenes/Scene.cs | |
parent | * Ignored all those autogenned build files (diff) | |
download | opensim-SC_OLD-08a1fa3f96eee5e067475da453a3770ff15780f9.zip opensim-SC_OLD-08a1fa3f96eee5e067475da453a3770ff15780f9.tar.gz opensim-SC_OLD-08a1fa3f96eee5e067475da453a3770ff15780f9.tar.bz2 opensim-SC_OLD-08a1fa3f96eee5e067475da453a3770ff15780f9.tar.xz |
* Introduced ClientManager for great justice.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 5e08d53..043dcd7 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -98,7 +98,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
98 | /// <param name="clientThreads">Dictionary to contain client threads</param> | 98 | /// <param name="clientThreads">Dictionary to contain client threads</param> |
99 | /// <param name="regionHandle">Region Handle for this region</param> | 99 | /// <param name="regionHandle">Region Handle for this region</param> |
100 | /// <param name="regionName">Region Name for this region</param> | 100 | /// <param name="regionName">Region Name for this region</param> |
101 | public Scene(Dictionary<uint, IClientAPI> clientThreads, RegionInfo regInfo, AuthenticateSessionsBase authen, CommunicationsManager commsMan, AssetCache assetCach, BaseHttpServer httpServer) | 101 | public Scene(ClientManager clientThreads, RegionInfo regInfo, AuthenticateSessionsBase authen, CommunicationsManager commsMan, AssetCache assetCach, BaseHttpServer httpServer) |
102 | { | 102 | { |
103 | updateLock = new Mutex(false); | 103 | updateLock = new Mutex(false); |
104 | this.authenticateHandler = authen; | 104 | this.authenticateHandler = authen; |
@@ -229,11 +229,11 @@ namespace OpenSim.Region.Environment.Scenes | |||
229 | } | 229 | } |
230 | this.localStorage.SaveMap(this.Terrain.getHeights1D()); | 230 | this.localStorage.SaveMap(this.Terrain.getHeights1D()); |
231 | 231 | ||
232 | foreach (IClientAPI client in m_clientThreads.Values) | 232 | m_clientThreads.ForEachClient(delegate(IClientAPI client) |
233 | { | 233 | { |
234 | this.SendLayerData(client); | 234 | this.SendLayerData(client); |
235 | } | 235 | }); |
236 | 236 | ||
237 | foreach (LLUUID UUID in Entities.Keys) | 237 | foreach (LLUUID UUID in Entities.Keys) |
238 | { | 238 | { |
239 | Entities[UUID].LandRenegerated(); | 239 | Entities[UUID].LandRenegerated(); |
@@ -260,10 +260,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
260 | } | 260 | } |
261 | this.localStorage.SaveMap(this.Terrain.getHeights1D()); | 261 | this.localStorage.SaveMap(this.Terrain.getHeights1D()); |
262 | 262 | ||
263 | foreach (IClientAPI client in m_clientThreads.Values) | 263 | m_clientThreads.ForEachClient(delegate(IClientAPI client) |
264 | { | 264 | { |
265 | this.SendLayerData(client); | 265 | this.SendLayerData(client); |
266 | } | 266 | }); |
267 | 267 | ||
268 | foreach (LLUUID UUID in Entities.Keys) | 268 | foreach (LLUUID UUID in Entities.Keys) |
269 | { | 269 | { |
@@ -290,10 +290,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
290 | { | 290 | { |
291 | /* Dont save here, rely on tainting system instead */ | 291 | /* Dont save here, rely on tainting system instead */ |
292 | 292 | ||
293 | foreach (IClientAPI client in m_clientThreads.Values) | 293 | m_clientThreads.ForEachClient(delegate(IClientAPI client) |
294 | { | 294 | { |
295 | this.SendLayerData(pointx, pointy, client); | 295 | this.SendLayerData(pointx, pointy, client); |
296 | } | 296 | }); |
297 | } | 297 | } |
298 | } | 298 | } |
299 | catch (Exception e) | 299 | catch (Exception e) |