mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
* Small commit: SceneObject now registers itself with the Backup event via the function ProcessBackup.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Processes backup
|
||||
/// </summary>
|
||||
/// <param name="datastore"></param>
|
||||
void ProcessBackup(OpenSim.Region.Interfaces.IRegionDataStore datastore)
|
||||
{
|
||||
datastore.StoreObject(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user