diff options
author | Melanie | 2010-03-30 23:29:03 +0100 |
---|---|---|
committer | Melanie | 2010-03-30 23:29:03 +0100 |
commit | 7d917e7c5c599549d2a87451fe3d6ca2bf6e62a4 (patch) | |
tree | 4fbeba0476276a867859d257d369689385d2b54c /OpenSim/Region/Framework | |
parent | Merge branch 'master' into careminster-presence-refactor (diff) | |
download | opensim-SC_OLD-7d917e7c5c599549d2a87451fe3d6ca2bf6e62a4.zip opensim-SC_OLD-7d917e7c5c599549d2a87451fe3d6ca2bf6e62a4.tar.gz opensim-SC_OLD-7d917e7c5c599549d2a87451fe3d6ca2bf6e62a4.tar.bz2 opensim-SC_OLD-7d917e7c5c599549d2a87451fe3d6ca2bf6e62a4.tar.xz |
Rename Meta7Windlight to LightShare
Diffstat (limited to 'OpenSim/Region/Framework')
5 files changed, 13 insertions, 14 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/IRegionDataStore.cs b/OpenSim/Region/Framework/Interfaces/IRegionDataStore.cs index 7312799..3e8e196 100644 --- a/OpenSim/Region/Framework/Interfaces/IRegionDataStore.cs +++ b/OpenSim/Region/Framework/Interfaces/IRegionDataStore.cs | |||
@@ -103,8 +103,8 @@ namespace OpenSim.Region.Framework.Interfaces | |||
103 | 103 | ||
104 | void StoreRegionSettings(RegionSettings rs); | 104 | void StoreRegionSettings(RegionSettings rs); |
105 | RegionSettings LoadRegionSettings(UUID regionUUID); | 105 | RegionSettings LoadRegionSettings(UUID regionUUID); |
106 | RegionMeta7WindlightData LoadRegionWindlightSettings(UUID regionUUID); | 106 | RegionLightShareData LoadRegionWindlightSettings(UUID regionUUID); |
107 | void StoreRegionWindlightSettings(RegionMeta7WindlightData wl); | 107 | void StoreRegionWindlightSettings(RegionLightShareData wl); |
108 | 108 | ||
109 | void Shutdown(); | 109 | void Shutdown(); |
110 | } | 110 | } |
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs index 37a51d9..ef125cd 100644 --- a/OpenSim/Region/Framework/Scenes/EventManager.cs +++ b/OpenSim/Region/Framework/Scenes/EventManager.cs | |||
@@ -207,7 +207,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
207 | 207 | ||
208 | public delegate void OnMakeRootAgentDelegate(ScenePresence presence); | 208 | public delegate void OnMakeRootAgentDelegate(ScenePresence presence); |
209 | public delegate void OnSaveNewWindlightProfileDelegate(); | 209 | public delegate void OnSaveNewWindlightProfileDelegate(); |
210 | public delegate void OnSendNewWindlightProfileTargetedDelegate(RegionMeta7WindlightData wl, UUID user); | 210 | public delegate void OnSendNewWindlightProfileTargetedDelegate(RegionLightShareData wl, UUID user); |
211 | public event OnMakeRootAgentDelegate OnMakeRootAgent; | 211 | public event OnMakeRootAgentDelegate OnMakeRootAgent; |
212 | public event OnSendNewWindlightProfileTargetedDelegate OnSendNewWindlightProfileTargeted; | 212 | public event OnSendNewWindlightProfileTargetedDelegate OnSendNewWindlightProfileTargeted; |
213 | public event OnSaveNewWindlightProfileDelegate OnSaveNewWindlightProfile; | 213 | public event OnSaveNewWindlightProfileDelegate OnSaveNewWindlightProfile; |
@@ -1220,7 +1220,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1220 | } | 1220 | } |
1221 | } | 1221 | } |
1222 | 1222 | ||
1223 | public void TriggerOnSendNewWindlightProfileTargeted(RegionMeta7WindlightData wl, UUID user) | 1223 | public void TriggerOnSendNewWindlightProfileTargeted(RegionLightShareData wl, UUID user) |
1224 | { | 1224 | { |
1225 | OnSendNewWindlightProfileTargetedDelegate handlerSendNewWindlightProfileTargeted = OnSendNewWindlightProfileTargeted; | 1225 | OnSendNewWindlightProfileTargetedDelegate handlerSendNewWindlightProfileTargeted = OnSendNewWindlightProfileTargeted; |
1226 | if (handlerSendNewWindlightProfileTargeted != null) | 1226 | if (handlerSendNewWindlightProfileTargeted != null) |
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 2b6f80b..1f604c5 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1729,7 +1729,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1729 | m_storageManager.DataStore.StoreTerrain(Heightmap.GetDoubles(), RegionInfo.RegionID); | 1729 | m_storageManager.DataStore.StoreTerrain(Heightmap.GetDoubles(), RegionInfo.RegionID); |
1730 | } | 1730 | } |
1731 | 1731 | ||
1732 | public void StoreWindlightProfile(RegionMeta7WindlightData wl) | 1732 | public void StoreWindlightProfile(RegionLightShareData wl) |
1733 | { | 1733 | { |
1734 | m_regInfo.WindlightSettings = wl; | 1734 | m_regInfo.WindlightSettings = wl; |
1735 | m_storageManager.DataStore.StoreRegionWindlightSettings(wl); | 1735 | m_storageManager.DataStore.StoreRegionWindlightSettings(wl); |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 3895d93..7ed29a5 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -1370,21 +1370,20 @@ namespace OpenSim.Region.Framework.Scenes | |||
1370 | { | 1370 | { |
1371 | // part.Inventory.RemoveScriptInstances(); | 1371 | // part.Inventory.RemoveScriptInstances(); |
1372 | 1372 | ||
1373 | List<ScenePresence> avatars = Scene.GetScenePresences(); | 1373 | Scene.ForEachScenePresence(delegate (ScenePresence sp) |
1374 | for (int i = 0; i < avatars.Count; i++) | ||
1375 | { | 1374 | { |
1376 | if (avatars[i].ParentID == LocalId) | 1375 | if (sp.ParentID == LocalId) |
1377 | { | 1376 | { |
1378 | avatars[i].StandUp(); | 1377 | sp.StandUp(); |
1379 | } | 1378 | } |
1380 | 1379 | ||
1381 | if (!silent) | 1380 | if (!silent) |
1382 | { | 1381 | { |
1383 | part.UpdateFlag = 0; | 1382 | part.UpdateFlag = 0; |
1384 | if (part == m_rootPart) | 1383 | if (part == m_rootPart) |
1385 | avatars[i].ControllingClient.SendKillObject(m_regionHandle, part.LocalId); | 1384 | sp.ControllingClient.SendKillObject(m_regionHandle, part.LocalId); |
1386 | } | 1385 | } |
1387 | } | 1386 | }); |
1388 | 1387 | ||
1389 | } | 1388 | } |
1390 | 1389 | ||
diff --git a/OpenSim/Region/Framework/Scenes/Tests/SceneTests.cs b/OpenSim/Region/Framework/Scenes/Tests/SceneTests.cs index 68035ca..8b2d387 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/SceneTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/SceneTests.cs | |||
@@ -101,13 +101,13 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
101 | { | 101 | { |
102 | throw new NotImplementedException(); | 102 | throw new NotImplementedException(); |
103 | } | 103 | } |
104 | public RegionMeta7WindlightData LoadRegionWindlightSettings(UUID regionUUID) | 104 | public RegionLightShareData LoadRegionWindlightSettings(UUID regionUUID) |
105 | { | 105 | { |
106 | //This connector doesn't support the windlight module yet | 106 | //This connector doesn't support the windlight module yet |
107 | //Return default LL windlight settings | 107 | //Return default LL windlight settings |
108 | return new RegionMeta7WindlightData(); | 108 | return new RegionLightShareData(); |
109 | } | 109 | } |
110 | public void StoreRegionWindlightSettings(RegionMeta7WindlightData wl) | 110 | public void StoreRegionWindlightSettings(RegionLightShareData wl) |
111 | { | 111 | { |
112 | //This connector doesn't support the windlight module yet | 112 | //This connector doesn't support the windlight module yet |
113 | } | 113 | } |