diff options
author | mingchen | 2008-05-03 17:11:21 +0000 |
---|---|---|
committer | mingchen | 2008-05-03 17:11:21 +0000 |
commit | 4a87d96c1741d4e785cd980e90182c4f7a1b64d1 (patch) | |
tree | 6bb575568ffa922e9a378947fc0a22649068230e /OpenSim/Region/Environment/Scenes | |
parent | * For your fragging desire, damage enabled land works, but watch out!, life d... (diff) | |
download | opensim-SC_OLD-4a87d96c1741d4e785cd980e90182c4f7a1b64d1.zip opensim-SC_OLD-4a87d96c1741d4e785cd980e90182c4f7a1b64d1.tar.gz opensim-SC_OLD-4a87d96c1741d4e785cd980e90182c4f7a1b64d1.tar.bz2 opensim-SC_OLD-4a87d96c1741d4e785cd980e90182c4f7a1b64d1.tar.xz |
*Moved EstateManager into a region module
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 14 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneEvents.cs | 15 |
2 files changed, 16 insertions, 13 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index edce960..13f8b61 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -153,7 +153,6 @@ namespace OpenSim.Region.Environment.Scenes | |||
153 | get { return m_authenticateHandler; } | 153 | get { return m_authenticateHandler; } |
154 | } | 154 | } |
155 | 155 | ||
156 | protected readonly EstateManager m_estateManager; | ||
157 | // an instance to the physics plugin's Scene object. | 156 | // an instance to the physics plugin's Scene object. |
158 | public PhysicsScene PhysicsScene | 157 | public PhysicsScene PhysicsScene |
159 | { | 158 | { |
@@ -167,11 +166,6 @@ namespace OpenSim.Region.Environment.Scenes | |||
167 | get { return m_innerScene.m_syncRoot; } | 166 | get { return m_innerScene.m_syncRoot; } |
168 | } | 167 | } |
169 | 168 | ||
170 | public EstateManager EstateManager | ||
171 | { | ||
172 | get { return m_estateManager; } | ||
173 | } | ||
174 | |||
175 | public float TimeDilation | 169 | public float TimeDilation |
176 | { | 170 | { |
177 | get { return m_timedilation; } | 171 | get { return m_timedilation; } |
@@ -256,8 +250,6 @@ namespace OpenSim.Region.Environment.Scenes | |||
256 | EventManager.OnLandObjectRemoved += | 250 | EventManager.OnLandObjectRemoved += |
257 | new EventManager.LandObjectRemoved(m_storageManager.DataStore.RemoveLandObject); | 251 | new EventManager.LandObjectRemoved(m_storageManager.DataStore.RemoveLandObject); |
258 | 252 | ||
259 | m_estateManager = new EstateManager(this, m_regInfo); | ||
260 | |||
261 | m_permissionManager = permissionManager; | 253 | m_permissionManager = permissionManager; |
262 | m_permissionManager.Initialise(this); | 254 | m_permissionManager.Initialise(this); |
263 | 255 | ||
@@ -1514,8 +1506,6 @@ namespace OpenSim.Region.Environment.Scenes | |||
1514 | { | 1506 | { |
1515 | m_log.Info("[REGION]: Add New Scene Presence"); | 1507 | m_log.Info("[REGION]: Add New Scene Presence"); |
1516 | 1508 | ||
1517 | m_estateManager.sendRegionHandshake(client); | ||
1518 | |||
1519 | CreateAndAddScenePresence(client, child); | 1509 | CreateAndAddScenePresence(client, child); |
1520 | 1510 | ||
1521 | LandChannel.sendParcelOverlay(client); | 1511 | LandChannel.sendParcelOverlay(client); |
@@ -1572,9 +1562,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1572 | client.OnParcelAccessListUpdateRequest += | 1562 | client.OnParcelAccessListUpdateRequest += |
1573 | new ParcelAccessListUpdateRequest(LandChannel.handleParcelAccessUpdateRequest); | 1563 | new ParcelAccessListUpdateRequest(LandChannel.handleParcelAccessUpdateRequest); |
1574 | 1564 | ||
1575 | client.OnEstateOwnerMessage += new EstateOwnerMessageRequest(m_estateManager.handleEstateOwnerMessage); | 1565 | |
1576 | client.OnRegionInfoRequest += m_estateManager.HandleRegionInfoRequest; | ||
1577 | client.OnEstateCovenantRequest += m_estateManager.HandleEstateCovenantRequest; | ||
1578 | client.OnRequestGodlikePowers += handleRequestGodlikePowers; | 1566 | client.OnRequestGodlikePowers += handleRequestGodlikePowers; |
1579 | client.OnGodKickUser += HandleGodlikeKickUser; | 1567 | client.OnGodKickUser += HandleGodlikeKickUser; |
1580 | client.OnObjectPermissions += HandleObjectPermissionsUpdate; | 1568 | client.OnObjectPermissions += HandleObjectPermissionsUpdate; |
diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs index 53a8d0f..2feed78 100644 --- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs +++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs | |||
@@ -151,6 +151,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
151 | 151 | ||
152 | public event NewInventoryItemUploadComplete OnNewInventoryItemUploadComplete; | 152 | public event NewInventoryItemUploadComplete OnNewInventoryItemUploadComplete; |
153 | 153 | ||
154 | public delegate void RequestChangeWaterHeight(float height); | ||
155 | |||
156 | public event RequestChangeWaterHeight OnRequestChangeWaterHeight; | ||
157 | |||
154 | public delegate void AvatarKillData(uint KillerLocalID, ScenePresence avatar); | 158 | public delegate void AvatarKillData(uint KillerLocalID, ScenePresence avatar); |
155 | 159 | ||
156 | public event AvatarKillData OnAvatarKilled; | 160 | public event AvatarKillData OnAvatarKilled; |
@@ -269,6 +273,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
269 | private RegisterCapsEvent handlerRegisterCaps = null; // OnRegisterCaps; | 273 | private RegisterCapsEvent handlerRegisterCaps = null; // OnRegisterCaps; |
270 | private DeregisterCapsEvent handlerDeregisterCaps = null; // OnDeregisterCaps; | 274 | private DeregisterCapsEvent handlerDeregisterCaps = null; // OnDeregisterCaps; |
271 | private NewInventoryItemUploadComplete handlerNewInventoryItemUpdateComplete = null; | 275 | private NewInventoryItemUploadComplete handlerNewInventoryItemUpdateComplete = null; |
276 | private RequestChangeWaterHeight handlerRequestChangeWaterHeight = null; //OnRequestChangeWaterHeight | ||
277 | |||
272 | private LandBuy handlerLandBuy = null; | 278 | private LandBuy handlerLandBuy = null; |
273 | private LandBuy handlerValidateLandBuy = null; | 279 | private LandBuy handlerValidateLandBuy = null; |
274 | private AvatarKillData handlerAvatarKill = null; | 280 | private AvatarKillData handlerAvatarKill = null; |
@@ -579,6 +585,15 @@ namespace OpenSim.Region.Environment.Scenes | |||
579 | handlerScriptNotAtTargetEvent(localID); | 585 | handlerScriptNotAtTargetEvent(localID); |
580 | } | 586 | } |
581 | } | 587 | } |
588 | |||
589 | public void TriggerRequestChangeWaterHeight(float height) | ||
590 | { | ||
591 | handlerRequestChangeWaterHeight = OnRequestChangeWaterHeight; | ||
592 | if (handlerRequestChangeWaterHeight != null) | ||
593 | { | ||
594 | handlerRequestChangeWaterHeight(height); | ||
595 | } | ||
596 | } | ||
582 | public void TriggerAvatarKill(uint KillerObjectLocalID, ScenePresence DeadAvatar) | 597 | public void TriggerAvatarKill(uint KillerObjectLocalID, ScenePresence DeadAvatar) |
583 | { | 598 | { |
584 | handlerAvatarKill = OnAvatarKilled; | 599 | handlerAvatarKill = OnAvatarKilled; |