mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
Merge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/careminster into careminster-presence-refactor
This commit is contained in:
@@ -43,6 +43,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
public delegate void ObjectDuplicateDelegate(EntityBase original, EntityBase clone);
|
||||
|
||||
public delegate void AttachToBackupDelegate(SceneObjectGroup sog);
|
||||
|
||||
public delegate void DetachFromBackupDelegate(SceneObjectGroup sog);
|
||||
|
||||
public delegate void ChangedBackupDelegate(SceneObjectGroup sog);
|
||||
|
||||
public delegate void ObjectCreateDelegate(EntityBase obj);
|
||||
|
||||
public delegate void ObjectDeleteDelegate(EntityBase obj);
|
||||
@@ -61,6 +67,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
private PhysicsCrash handlerPhysicsCrash = null;
|
||||
|
||||
public event ObjectDuplicateDelegate OnObjectDuplicate;
|
||||
public event AttachToBackupDelegate OnAttachToBackup;
|
||||
public event DetachFromBackupDelegate OnDetachFromBackup;
|
||||
public event ChangedBackupDelegate OnChangeBackup;
|
||||
public event ObjectCreateDelegate OnObjectCreate;
|
||||
public event ObjectDeleteDelegate OnObjectRemove;
|
||||
|
||||
@@ -388,10 +397,14 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
m_numPrim += sceneObject.Children.Count;
|
||||
|
||||
if (attachToBackup)
|
||||
{
|
||||
sceneObject.AttachToBackup();
|
||||
}
|
||||
|
||||
if (OnObjectCreate != null)
|
||||
{
|
||||
OnObjectCreate(sceneObject);
|
||||
}
|
||||
|
||||
lock (m_dictionary_lock)
|
||||
{
|
||||
@@ -458,6 +471,30 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
}
|
||||
|
||||
public void FireAttachToBackup(SceneObjectGroup obj)
|
||||
{
|
||||
if (OnAttachToBackup != null)
|
||||
{
|
||||
OnAttachToBackup(obj);
|
||||
}
|
||||
}
|
||||
|
||||
public void FireDetachFromBackup(SceneObjectGroup obj)
|
||||
{
|
||||
if (OnDetachFromBackup != null)
|
||||
{
|
||||
OnDetachFromBackup(obj);
|
||||
}
|
||||
}
|
||||
|
||||
public void FireChangeBackup(SceneObjectGroup obj)
|
||||
{
|
||||
if (OnChangeBackup != null)
|
||||
{
|
||||
OnChangeBackup(obj);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Process all pending updates
|
||||
/// </summary>
|
||||
|
||||
@@ -200,6 +200,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
if (value)
|
||||
{
|
||||
if (m_isBackedUp)
|
||||
{
|
||||
m_scene.SceneGraph.FireChangeBackup(this);
|
||||
}
|
||||
timeLastChanged = DateTime.Now.Ticks;
|
||||
if (!m_hasGroupChanged)
|
||||
timeFirstChanged = DateTime.Now.Ticks;
|
||||
@@ -658,6 +662,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
/// </summary>
|
||||
public virtual void AttachToBackup()
|
||||
{
|
||||
m_scene.SceneGraph.FireAttachToBackup(this);
|
||||
|
||||
if (InSceneBackup)
|
||||
{
|
||||
//m_log.DebugFormat(
|
||||
@@ -2703,6 +2709,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
/// <param name="objectGroup"></param>
|
||||
public virtual void DetachFromBackup()
|
||||
{
|
||||
m_scene.SceneGraph.FireDetachFromBackup(this);
|
||||
|
||||
if (m_isBackedUp)
|
||||
m_scene.EventManager.OnBackup -= ProcessBackup;
|
||||
|
||||
|
||||
BIN
bin/DiffieHellman.dll
Normal file
BIN
bin/DiffieHellman.dll
Normal file
Binary file not shown.
BIN
bin/GitSharp.Core.dll
Normal file
BIN
bin/GitSharp.Core.dll
Normal file
Binary file not shown.
BIN
bin/GitSharp.Core.pdb
Normal file
BIN
bin/GitSharp.Core.pdb
Normal file
Binary file not shown.
BIN
bin/GitSharp.dll
Normal file
BIN
bin/GitSharp.dll
Normal file
Binary file not shown.
BIN
bin/GitSharp.pdb
Normal file
BIN
bin/GitSharp.pdb
Normal file
Binary file not shown.
BIN
bin/ICSharpCode.SharpZipLib.dll
Normal file
BIN
bin/ICSharpCode.SharpZipLib.dll
Normal file
Binary file not shown.
9055
bin/ICSharpCode.SharpZipLib.xml
Normal file
9055
bin/ICSharpCode.SharpZipLib.xml
Normal file
File diff suppressed because it is too large
Load Diff
@@ -883,6 +883,9 @@
|
||||
PriceObjectScaleFactor = 10
|
||||
PriceParcelRent = 1
|
||||
|
||||
[Git]
|
||||
Enabled = true
|
||||
RepoPath = "git"
|
||||
|
||||
[SVN]
|
||||
Enabled = false
|
||||
|
||||
BIN
bin/Org.Mentalis.Security.dll
Normal file
BIN
bin/Org.Mentalis.Security.dll
Normal file
Binary file not shown.
BIN
bin/Tamir.SharpSSH.dll
Normal file
BIN
bin/Tamir.SharpSSH.dll
Normal file
Binary file not shown.
BIN
bin/Winterdom.IO.FileMap.dll
Normal file
BIN
bin/Winterdom.IO.FileMap.dll
Normal file
Binary file not shown.
BIN
bin/Winterdom.IO.FileMap.pdb
Normal file
BIN
bin/Winterdom.IO.FileMap.pdb
Normal file
Binary file not shown.
Reference in New Issue
Block a user