From e14ef63113531b0a0f85e879eb20f68884e387b7 Mon Sep 17 00:00:00 2001
From: Adam Frisby
Date: Fri, 13 Jul 2007 20:10:32 +0000
Subject: * Small commit: SceneObject now registers itself with the Backup
event via the function ProcessBackup.
---
OpenSim/Region/Environment/Scenes/SceneObject.cs | 12 ++++++++++++
1 file changed, 12 insertions(+)
(limited to 'OpenSim')
diff --git a/OpenSim/Region/Environment/Scenes/SceneObject.cs b/OpenSim/Region/Environment/Scenes/SceneObject.cs
index d507a98..7058ece 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObject.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObject.cs
@@ -74,6 +74,18 @@ namespace OpenSim.Region.Environment.Scenes
m_world = world;
this.Pos = pos;
this.CreateRootFromShape(ownerID, localID, shape, pos);
+
+ // Setup a backup event listener
+ world.eventManager.OnBackup += new EventManager.OnBackupDelegate(ProcessBackup);
+ }
+
+ ///
+ /// Processes backup
+ ///
+ ///
+ void ProcessBackup(OpenSim.Region.Interfaces.IRegionDataStore datastore)
+ {
+ datastore.StoreObject(this);
}
///
--
cgit v1.1