mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
Reflect the ParcelPropertiesUpdateRequest into Scene.EventManager, because
modules need to see it (Search!) even if it comes in via CAPS
This commit is contained in:
committed by
Melanie
parent
7f9f9f9246
commit
0246edc2ea
@@ -109,6 +109,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
public event OnSetRootAgentSceneDelegate OnSetRootAgentScene;
|
||||
|
||||
public event ParcelPropertiesUpdateRequest OnParcelPropertiesUpdateRequest;
|
||||
|
||||
/// <summary>
|
||||
/// Fired when an object is touched/grabbed.
|
||||
/// </summary>
|
||||
@@ -2104,5 +2106,27 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void TriggerOnParcelPropertiesUpdateRequest(LandUpdateArgs args,
|
||||
int local_id, IClientAPI remote_client)
|
||||
{
|
||||
ParcelPropertiesUpdateRequest handler = OnParcelPropertiesUpdateRequest;
|
||||
if (handler != null)
|
||||
{
|
||||
foreach (ParcelPropertiesUpdateRequest d in handler.GetInvocationList())
|
||||
{
|
||||
try
|
||||
{
|
||||
d(args, local_id, remote_client);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
m_log.ErrorFormat(
|
||||
"[EVENT MANAGER]: Delegate for TriggerOnSceneObjectPartCopy failed - continuing. {0} {1}",
|
||||
e.Message, e.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user