aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneEvents.cs
diff options
context:
space:
mode:
authorMW2007-08-21 21:03:18 +0000
committerMW2007-08-21 21:03:18 +0000
commit921ac14e86fab329c3135b24b2a1be83813fce1b (patch)
tree867f42c3f5b9984b2281df2e6b40f7f56349d297 /OpenSim/Region/Environment/Scenes/SceneEvents.cs
parentchanged the comment lines from # to ; in opensim.ini. (diff)
downloadopensim-SC_OLD-921ac14e86fab329c3135b24b2a1be83813fce1b.zip
opensim-SC_OLD-921ac14e86fab329c3135b24b2a1be83813fce1b.tar.gz
opensim-SC_OLD-921ac14e86fab329c3135b24b2a1be83813fce1b.tar.bz2
opensim-SC_OLD-921ac14e86fab329c3135b24b2a1be83813fce1b.tar.xz
Added OnRezScript event to Scene.EventManager.Which the script engine should subscribe to. This is triggered whenever a script is moved into a primitive (and includes the localid of the prim and the script text as params) . Currently though the script item isn't deleted from a users inventory, nor does it actually show up in the objects inventory (this will be fixed soon.) So that means that it isn't currently possible to edit a script (or delete it) once it has been added to a primitive.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneEvents.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneEvents.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs
index 050207c..89aeda6 100644
--- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs
@@ -37,6 +37,9 @@ namespace OpenSim.Region.Environment.Scenes
37 public event ObjectGrabDelegate OnObjectGrab; 37 public event ObjectGrabDelegate OnObjectGrab;
38 public event OnPermissionErrorDelegate OnPermissionError; 38 public event OnPermissionErrorDelegate OnPermissionError;
39 39
40 public delegate void NewRezScript(uint localID, string script);
41 public event NewRezScript OnRezScript;
42
40 43
41 public void TriggerPermissionError(LLUUID user, string reason) 44 public void TriggerPermissionError(LLUUID user, string reason)
42 { 45 {
@@ -106,5 +109,13 @@ namespace OpenSim.Region.Environment.Scenes
106 if (OnObjectGrab != null) 109 if (OnObjectGrab != null)
107 OnObjectGrab(localID, offsetPos, remoteClient); 110 OnObjectGrab(localID, offsetPos, remoteClient);
108 } 111 }
112
113 public void TriggerRezScript(uint localID, string script)
114 {
115 if (OnRezScript != null)
116 {
117 OnRezScript(localID, script);
118 }
119 }
109 } 120 }
110} 121}