aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneEvents.cs
diff options
context:
space:
mode:
authorMW2007-08-22 18:36:47 +0000
committerMW2007-08-22 18:36:47 +0000
commit47c6d8ae8f85f07a16390f0130180a1b0521b6a1 (patch)
treef1aeac40c1f77eba0642ba35263cc76ed4c60c97 /OpenSim/Region/Environment/Scenes/SceneEvents.cs
parent(Untested) Scripts are individually loaded into objects (on rez), and event f... (diff)
downloadopensim-SC-47c6d8ae8f85f07a16390f0130180a1b0521b6a1.zip
opensim-SC-47c6d8ae8f85f07a16390f0130180a1b0521b6a1.tar.gz
opensim-SC-47c6d8ae8f85f07a16390f0130180a1b0521b6a1.tar.bz2
opensim-SC-47c6d8ae8f85f07a16390f0130180a1b0521b6a1.tar.xz
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.cs10
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}