mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
let changed allowed drop have lldetectedkey[0] return the dropped item id, Yengine and still testing"
This commit is contained in:
@@ -539,7 +539,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
/// <see cref="SceneObjectPart.TriggerScriptChangedEvent"/>
|
||||
/// </remarks>
|
||||
public event ScriptChangedEvent OnScriptChangedEvent;
|
||||
public delegate void ScriptChangedEvent(uint localID, uint change);
|
||||
public delegate void ScriptChangedEvent(uint localID, uint change, object data);
|
||||
|
||||
public delegate void ScriptControlEvent(UUID item, UUID avatarID, uint held, uint changed);
|
||||
|
||||
@@ -1185,7 +1185,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
}
|
||||
|
||||
public void TriggerOnScriptChangedEvent(uint localID, uint change)
|
||||
public void TriggerOnScriptChangedEvent(uint localID, uint change, object parameter = null)
|
||||
{
|
||||
ScriptChangedEvent handlerScriptChangedEvent = OnScriptChangedEvent;
|
||||
if (handlerScriptChangedEvent != null)
|
||||
@@ -1194,7 +1194,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
try
|
||||
{
|
||||
d(localID, change);
|
||||
d(localID, change, parameter);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
@@ -4439,10 +4439,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
SceneObjectSerializer.SOPToXml2(xmlWriter, this, new Dictionary<string, object>());
|
||||
}
|
||||
|
||||
public void TriggerScriptChangedEvent(Changed val)
|
||||
public void TriggerScriptChangedEvent(Changed val, object data = null)
|
||||
{
|
||||
if (ParentGroup != null && ParentGroup.Scene != null)
|
||||
ParentGroup.Scene.EventManager.TriggerOnScriptChangedEvent(LocalId, (uint)val);
|
||||
ParentGroup.Scene.EventManager.TriggerOnScriptChangedEvent(LocalId, (uint)val, data);
|
||||
}
|
||||
|
||||
public void TrimPermissions()
|
||||
|
||||
@@ -816,7 +816,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
m_items.Add(item.ItemID, item);
|
||||
m_items.LockItemsForWrite(false);
|
||||
if (allowedDrop)
|
||||
m_part.TriggerScriptChangedEvent(Changed.ALLOWED_DROP);
|
||||
m_part.TriggerScriptChangedEvent(Changed.ALLOWED_DROP, item.ItemID);
|
||||
else
|
||||
m_part.TriggerScriptChangedEvent(Changed.INVENTORY);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user