Add root agent tracking to presence module

This commit is contained in:
Melanie Thielker
2008-11-22 23:38:25 +00:00
parent 2fa072b579
commit 7aa32ac6e0
3 changed files with 21 additions and 9 deletions

View File

@@ -98,7 +98,7 @@ namespace OpenSim.Region.Environment.Scenes
public delegate void OnPermissionErrorDelegate(UUID user, string reason);
public delegate void OnSetRootAgentSceneDelegate(UUID agentID);
public delegate void OnSetRootAgentSceneDelegate(UUID agentID, Scene scene);
public event OnSetRootAgentSceneDelegate OnSetRootAgentScene;
@@ -919,11 +919,11 @@ namespace OpenSim.Region.Environment.Scenes
handlerCollidingEnd(localId, colliders);
}
public void TriggerSetRootAgentScene(UUID agentID)
public void TriggerSetRootAgentScene(UUID agentID, Scene scene)
{
handlerSetRootAgentScene = OnSetRootAgentScene;
if (handlerSetRootAgentScene != null)
handlerSetRootAgentScene(agentID);
handlerSetRootAgentScene(agentID, scene);
}
}
}

View File

@@ -4215,7 +4215,7 @@ namespace OpenSim.Region.Environment.Scenes
inv.SetRootAgentScene(agentID, this);
EventManager.TriggerSetRootAgentScene(agentID);
EventManager.TriggerSetRootAgentScene(agentID, this);
}
public bool NeedSceneCacheClear(UUID agentID)