mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
Just trying out some thing with events, there changes/additions are likely to be temporary.
This commit is contained in:
@@ -60,6 +60,14 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
|
||||
public event RemoveScript OnRemoveScript;
|
||||
|
||||
public delegate void SceneGroupMoved(LLUUID groupID, LLVector3 delta);
|
||||
|
||||
public event SceneGroupMoved OnSceneGroupMove;
|
||||
|
||||
public delegate void SceneGroupGrabed(LLUUID groupID, LLVector3 offset);
|
||||
|
||||
public event SceneGroupGrabed OnSceneGroupGrab;
|
||||
|
||||
public void TriggerPermissionError(LLUUID user, string reason)
|
||||
{
|
||||
if (OnPermissionError != null)
|
||||
@@ -153,5 +161,21 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
OnRemoveScript(localID, itemID);
|
||||
}
|
||||
}
|
||||
|
||||
public void TriggerGroupMove(LLUUID groupID, LLVector3 delta)
|
||||
{
|
||||
if (OnSceneGroupMove != null)
|
||||
{
|
||||
OnSceneGroupMove(groupID, delta);
|
||||
}
|
||||
}
|
||||
|
||||
public void TriggerGroupGrab(LLUUID groupID, LLVector3 offset)
|
||||
{
|
||||
if (OnSceneGroupGrab != null)
|
||||
{
|
||||
OnSceneGroupGrab(groupID, offset);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user