diff options
Added OnRemoveScript(uint localID, LLUUID itemID) event , trigged when a script in a primitive is deleted.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneEvents.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneEvents.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs index 09a7f21..3c6b277 100644 --- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs +++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs | |||
@@ -40,6 +40,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
40 | public delegate void NewRezScript(uint localID, LLUUID itemID, string script); | 40 | public delegate void NewRezScript(uint localID, LLUUID itemID, string script); |
41 | public event NewRezScript OnRezScript; | 41 | public event NewRezScript OnRezScript; |
42 | 42 | ||
43 | public delegate void RemoveScript(uint localID, LLUUID itemID); | ||
44 | public event RemoveScript OnRemoveScript; | ||
43 | 45 | ||
44 | public void TriggerPermissionError(LLUUID user, string reason) | 46 | public void TriggerPermissionError(LLUUID user, string reason) |
45 | { | 47 | { |
@@ -117,5 +119,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
117 | OnRezScript(localID, itemID, script); | 119 | OnRezScript(localID, itemID, script); |
118 | } | 120 | } |
119 | } | 121 | } |
122 | |||
123 | public void TriggerRemoveScript(uint localID, LLUUID itemID) | ||
124 | { | ||
125 | if (OnRemoveScript != null) | ||
126 | { | ||
127 | OnRemoveScript(localID, itemID); | ||
128 | } | ||
129 | } | ||
120 | } | 130 | } |
121 | } | 131 | } |