diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneEvents.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneEvents.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs index ac8f91e..5f8c977 100644 --- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs +++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs | |||
@@ -48,6 +48,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
48 | 48 | ||
49 | public event ClientMovement OnClientMovement; | 49 | public event ClientMovement OnClientMovement; |
50 | 50 | ||
51 | public delegate void OnTerrainTickDelegate(); | ||
52 | |||
53 | public event OnTerrainTickDelegate OnTerrainTick; | ||
54 | |||
51 | public delegate void OnBackupDelegate(IRegionDataStore datastore); | 55 | public delegate void OnBackupDelegate(IRegionDataStore datastore); |
52 | 56 | ||
53 | public event OnBackupDelegate OnBackup; | 57 | public event OnBackupDelegate OnBackup; |
@@ -189,6 +193,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
189 | private NewGridInstantMessage handlerGridInstantMessageToFriends = null; //OnGridInstantMessageToFriendsModule; | 193 | private NewGridInstantMessage handlerGridInstantMessageToFriends = null; //OnGridInstantMessageToFriendsModule; |
190 | private ClientClosed handlerClientClosed = null; //OnClientClosed; | 194 | private ClientClosed handlerClientClosed = null; //OnClientClosed; |
191 | private OnNewPresenceDelegate handlerMakeChildAgent = null; //OnMakeChildAgent; | 195 | private OnNewPresenceDelegate handlerMakeChildAgent = null; //OnMakeChildAgent; |
196 | private OnTerrainTickDelegate handlerTerrainTick = null; // OnTerainTick; | ||
192 | 197 | ||
193 | public void TriggerOnScriptChangedEvent(uint localID, uint change) | 198 | public void TriggerOnScriptChangedEvent(uint localID, uint change) |
194 | { | 199 | { |
@@ -277,6 +282,14 @@ namespace OpenSim.Region.Environment.Scenes | |||
277 | } | 282 | } |
278 | } | 283 | } |
279 | 284 | ||
285 | public void TriggerTerrainTick() | ||
286 | { | ||
287 | handlerTerrainTick = OnTerrainTick; | ||
288 | if (handlerTerrainTick != null) | ||
289 | { | ||
290 | handlerTerrainTick(); | ||
291 | } | ||
292 | } | ||
280 | 293 | ||
281 | public void TriggerParcelPrimCountAdd(SceneObjectGroup obj) | 294 | public void TriggerParcelPrimCountAdd(SceneObjectGroup obj) |
282 | { | 295 | { |