diff options
author | Tom Grimshaw | 2010-06-25 14:39:15 -0700 |
---|---|---|
committer | Tom Grimshaw | 2010-06-25 14:39:15 -0700 |
commit | f64d1cb3967b5352921b296348f618a62fdfa622 (patch) | |
tree | 1e4bb04257473a7abfe5fad742757f4e48d2875b /OpenSim/Region | |
parent | Merge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/ca... (diff) | |
download | opensim-SC_OLD-f64d1cb3967b5352921b296348f618a62fdfa622.zip opensim-SC_OLD-f64d1cb3967b5352921b296348f618a62fdfa622.tar.gz opensim-SC_OLD-f64d1cb3967b5352921b296348f618a62fdfa622.tar.bz2 opensim-SC_OLD-f64d1cb3967b5352921b296348f618a62fdfa622.tar.xz |
Add new event: OnChangedBackup
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneGraph.cs | 11 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs index ce7b0eb..81ef54f 100644 --- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs +++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs | |||
@@ -47,6 +47,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
47 | 47 | ||
48 | public delegate void DetachFromBackupDelegate(SceneObjectGroup sog); | 48 | public delegate void DetachFromBackupDelegate(SceneObjectGroup sog); |
49 | 49 | ||
50 | public delegate void ChangedBackupDelegate(SceneObjectGroup sog); | ||
51 | |||
50 | public delegate void ObjectCreateDelegate(EntityBase obj); | 52 | public delegate void ObjectCreateDelegate(EntityBase obj); |
51 | 53 | ||
52 | public delegate void ObjectDeleteDelegate(EntityBase obj); | 54 | public delegate void ObjectDeleteDelegate(EntityBase obj); |
@@ -67,6 +69,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
67 | public event ObjectDuplicateDelegate OnObjectDuplicate; | 69 | public event ObjectDuplicateDelegate OnObjectDuplicate; |
68 | public event AttachToBackupDelegate OnAttachToBackup; | 70 | public event AttachToBackupDelegate OnAttachToBackup; |
69 | public event DetachFromBackupDelegate OnDetachFromBackup; | 71 | public event DetachFromBackupDelegate OnDetachFromBackup; |
72 | public event ChangedBackupDelegate OnChangeBackup; | ||
70 | public event ObjectCreateDelegate OnObjectCreate; | 73 | public event ObjectCreateDelegate OnObjectCreate; |
71 | public event ObjectDeleteDelegate OnObjectRemove; | 74 | public event ObjectDeleteDelegate OnObjectRemove; |
72 | 75 | ||
@@ -484,6 +487,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
484 | } | 487 | } |
485 | } | 488 | } |
486 | 489 | ||
490 | public void FireChangeBackup(SceneObjectGroup obj) | ||
491 | { | ||
492 | if (OnChangeBackup != null) | ||
493 | { | ||
494 | OnChangeBackup(obj); | ||
495 | } | ||
496 | } | ||
497 | |||
487 | /// <summary> | 498 | /// <summary> |
488 | /// Process all pending updates | 499 | /// Process all pending updates |
489 | /// </summary> | 500 | /// </summary> |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index e18dfd2..7081ced 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -200,6 +200,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
200 | { | 200 | { |
201 | if (value) | 201 | if (value) |
202 | { | 202 | { |
203 | if (m_isBackedUp) | ||
204 | { | ||
205 | m_scene.SceneGraph.FireChangeBackup(this); | ||
206 | } | ||
203 | timeLastChanged = DateTime.Now.Ticks; | 207 | timeLastChanged = DateTime.Now.Ticks; |
204 | if (!m_hasGroupChanged) | 208 | if (!m_hasGroupChanged) |
205 | timeFirstChanged = DateTime.Now.Ticks; | 209 | timeFirstChanged = DateTime.Now.Ticks; |