couple of small event changes

afrisby
MW 2007-10-16 15:09:06 +00:00
parent 0f1604a53f
commit be0aebcc9a
2 changed files with 4 additions and 4 deletions

View File

@ -92,7 +92,7 @@ namespace OpenSim.Region.Environment.Scenes
public event SceneGroupMoved OnSceneGroupMove;
public delegate void SceneGroupGrabed(LLUUID groupID, LLVector3 offset);
public delegate void SceneGroupGrabed(LLUUID groupID, LLVector3 offset, LLUUID userID);
public event SceneGroupGrabed OnSceneGroupGrab;
@ -198,11 +198,11 @@ namespace OpenSim.Region.Environment.Scenes
}
}
public void TriggerGroupGrab(LLUUID groupID, LLVector3 offset)
public void TriggerGroupGrab(LLUUID groupID, LLVector3 offset, LLUUID userID)
{
if (OnSceneGroupGrab != null)
{
OnSceneGroupGrab(groupID, offset);
OnSceneGroupGrab(groupID, offset, userID);
}
}
}

View File

@ -1318,7 +1318,7 @@ namespace OpenSim.Region.Environment.Scenes
public virtual void OnGrabGroup(LLVector3 offsetPos, IClientAPI remoteClient)
{
m_scene.EventManager.TriggerGroupGrab(this.UUID, offsetPos);
m_scene.EventManager.TriggerGroupGrab(this.UUID, offsetPos, remoteClient.AgentId);
}
public void DeleteGroup()