mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
Merge branch 'master' into careminster-presence-refactor
This commit is contained in:
@@ -183,7 +183,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
public event ScriptChangedEvent OnScriptChangedEvent;
|
||||
public delegate void ScriptChangedEvent(uint localID, uint change);
|
||||
|
||||
public delegate void ScriptControlEvent(uint localID, UUID item, UUID avatarID, uint held, uint changed);
|
||||
public delegate void ScriptControlEvent(UUID item, UUID avatarID, uint held, uint changed);
|
||||
public event ScriptControlEvent OnScriptControlEvent;
|
||||
|
||||
public delegate void ScriptAtTargetEvent(uint localID, uint handle, Vector3 targetpos, Vector3 atpos);
|
||||
@@ -1619,7 +1619,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
}
|
||||
|
||||
internal void TriggerControlEvent(uint p, UUID scriptUUID, UUID avatarID, uint held, uint _changed)
|
||||
internal void TriggerControlEvent(UUID scriptUUID, UUID avatarID, uint held, uint _changed)
|
||||
{
|
||||
ScriptControlEvent handlerScriptControlEvent = OnScriptControlEvent;
|
||||
if (handlerScriptControlEvent != null)
|
||||
@@ -1628,7 +1628,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
try
|
||||
{
|
||||
d(p, scriptUUID, avatarID, held, _changed);
|
||||
d(scriptUUID, avatarID, held, _changed);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
@@ -61,7 +61,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
struct ScriptControllers
|
||||
{
|
||||
public UUID itemID;
|
||||
public uint objID;
|
||||
public ScriptControlled ignoreControls;
|
||||
public ScriptControlled eventControls;
|
||||
}
|
||||
@@ -3945,7 +3944,6 @@ Console.WriteLine("Scripted Sit ofset {0}", m_pos);
|
||||
obj.eventControls = ScriptControlled.CONTROL_ZERO;
|
||||
|
||||
obj.itemID = Script_item_UUID;
|
||||
obj.objID = Obj_localID;
|
||||
if (pass_on == 0 && accept == 0)
|
||||
{
|
||||
IgnoredControls |= (ScriptControlled)controls;
|
||||
@@ -4088,7 +4086,7 @@ Console.WriteLine("Scripted Sit ofset {0}", m_pos);
|
||||
if (localHeld != ScriptControlled.CONTROL_ZERO || localChange != ScriptControlled.CONTROL_ZERO)
|
||||
{
|
||||
// only send if still pressed or just changed
|
||||
m_scene.EventManager.TriggerControlEvent(scriptControlData.objID, scriptUUID, UUID, (uint)localHeld, (uint)localChange);
|
||||
m_scene.EventManager.TriggerControlEvent(scriptUUID, UUID, (uint)localHeld, (uint)localChange);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user