diff options
author | Adam Frisby | 2007-07-13 20:10:32 +0000 |
---|---|---|
committer | Adam Frisby | 2007-07-13 20:10:32 +0000 |
commit | e14ef63113531b0a0f85e879eb20f68884e387b7 (patch) | |
tree | f70421503b7320f0326c0744724974e14388a7e9 /OpenSim/Region | |
parent | * Fixing issue with ParcelFlags. ParcelFlags is now a uint rather than an enum. (diff) | |
download | opensim-SC_OLD-e14ef63113531b0a0f85e879eb20f68884e387b7.zip opensim-SC_OLD-e14ef63113531b0a0f85e879eb20f68884e387b7.tar.gz opensim-SC_OLD-e14ef63113531b0a0f85e879eb20f68884e387b7.tar.bz2 opensim-SC_OLD-e14ef63113531b0a0f85e879eb20f68884e387b7.tar.xz |
* Small commit: SceneObject now registers itself with the Backup event via the function ProcessBackup.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObject.cs | 12 |
1 files changed, 12 insertions, 0 deletions
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 | |||
74 | m_world = world; | 74 | m_world = world; |
75 | this.Pos = pos; | 75 | this.Pos = pos; |
76 | this.CreateRootFromShape(ownerID, localID, shape, pos); | 76 | this.CreateRootFromShape(ownerID, localID, shape, pos); |
77 | |||
78 | // Setup a backup event listener | ||
79 | world.eventManager.OnBackup += new EventManager.OnBackupDelegate(ProcessBackup); | ||
80 | } | ||
81 | |||
82 | /// <summary> | ||
83 | /// Processes backup | ||
84 | /// </summary> | ||
85 | /// <param name="datastore"></param> | ||
86 | void ProcessBackup(OpenSim.Region.Interfaces.IRegionDataStore datastore) | ||
87 | { | ||
88 | datastore.StoreObject(this); | ||
77 | } | 89 | } |
78 | 90 | ||
79 | /// <summary> | 91 | /// <summary> |