* Small commit: SceneObject now registers itself with the Backup event via the function ProcessBackup.

afrisby
Adam Frisby 2007-07-13 20:10:32 +00:00
parent ad264a6b6d
commit e14ef63113
1 changed files with 12 additions and 0 deletions

View File

@ -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>