mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Next step in the presence module - some core plumbing included at
no extra cost
This commit is contained in:
@@ -98,6 +98,10 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
|
||||
public delegate void OnPermissionErrorDelegate(UUID user, string reason);
|
||||
|
||||
public delegate void OnSetRootAgentSceneDelegate(UUID agentID);
|
||||
|
||||
public event OnSetRootAgentSceneDelegate OnSetRootAgentScene;
|
||||
|
||||
public event ObjectGrabDelegate OnObjectGrab;
|
||||
public event ObjectDeGrabDelegate OnObjectDeGrab;
|
||||
public event ScriptResetDelegate OnScriptReset;
|
||||
@@ -389,6 +393,8 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
private GetScriptRunning handlerGetScriptRunning = null;
|
||||
|
||||
private SunLindenHour handlerSunGetLindenHour = null;
|
||||
private OnSetRootAgentSceneDelegate handlerSetRootAgentScene = null;
|
||||
|
||||
|
||||
public void TriggerGetScriptRunning(IClientAPI controllingClient, UUID objectID, UUID itemID)
|
||||
{
|
||||
@@ -912,5 +918,12 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
if (handlerCollidingEnd != null)
|
||||
handlerCollidingEnd(localId, colliders);
|
||||
}
|
||||
|
||||
public void TriggerSetRootAgentScene(UUID agentID)
|
||||
{
|
||||
handlerSetRootAgentScene = OnSetRootAgentScene;
|
||||
if (handlerSetRootAgentScene != null)
|
||||
handlerSetRootAgentScene(agentID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4214,6 +4214,8 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
return;
|
||||
|
||||
inv.SetRootAgentScene(agentID, this);
|
||||
|
||||
EventManager.TriggerSetRootAgentScene(agentID);
|
||||
}
|
||||
|
||||
public bool NeedSceneCacheClear(UUID agentID)
|
||||
|
||||
Reference in New Issue
Block a user