make methods surounding backup virtual so they could be override for server side created objects

trunk
Sean Dague 2009-07-02 12:00:39 +00:00
parent 412b555c27
commit 49f89dd758
1 changed files with 3 additions and 3 deletions

View File

@ -463,7 +463,7 @@ namespace OpenSim.Region.Framework.Scenes
/// <summary> /// <summary>
/// Hooks this object up to the backup event so that it is persisted to the database when the update thread executes. /// Hooks this object up to the backup event so that it is persisted to the database when the update thread executes.
/// </summary> /// </summary>
public void AttachToBackup() public virtual void AttachToBackup()
{ {
if (InSceneBackup) if (InSceneBackup)
{ {
@ -1063,7 +1063,7 @@ namespace OpenSim.Region.Framework.Scenes
/// Processes backup. /// Processes backup.
/// </summary> /// </summary>
/// <param name="datastore"></param> /// <param name="datastore"></param>
public void ProcessBackup(IRegionDataStore datastore, bool forcedBackup) public virtual void ProcessBackup(IRegionDataStore datastore, bool forcedBackup)
{ {
if (!m_isBackedUp) if (!m_isBackedUp)
return; return;
@ -2063,7 +2063,7 @@ namespace OpenSim.Region.Framework.Scenes
/// Stop this object from being persisted over server restarts. /// Stop this object from being persisted over server restarts.
/// </summary> /// </summary>
/// <param name="objectGroup"></param> /// <param name="objectGroup"></param>
public void DetachFromBackup() public virtual void DetachFromBackup()
{ {
if (m_isBackedUp) if (m_isBackedUp)
m_scene.EventManager.OnBackup -= ProcessBackup; m_scene.EventManager.OnBackup -= ProcessBackup;