diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/EventManager.cs | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs index 9fcd5fe..605ee32 100644 --- a/OpenSim/Region/Framework/Scenes/EventManager.cs +++ b/OpenSim/Region/Framework/Scenes/EventManager.cs | |||
@@ -142,8 +142,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
142 | public event OnPermissionErrorDelegate OnPermissionError; | 142 | public event OnPermissionErrorDelegate OnPermissionError; |
143 | 143 | ||
144 | /// <summary> | 144 | /// <summary> |
145 | /// Fired when a new script is created. | 145 | /// Fired when a script is run. |
146 | /// </summary> | 146 | /// </summary> |
147 | /// <remarks> | ||
148 | /// Occurs after OnNewScript. | ||
149 | /// </remarks> | ||
147 | public event NewRezScript OnRezScript; | 150 | public event NewRezScript OnRezScript; |
148 | public delegate void NewRezScript(uint localID, UUID itemID, string script, int startParam, bool postOnRez, string engine, int stateSource); | 151 | public delegate void NewRezScript(uint localID, UUID itemID, string script, int startParam, bool postOnRez, string engine, int stateSource); |
149 | 152 | ||
@@ -191,10 +194,16 @@ namespace OpenSim.Region.Framework.Scenes | |||
191 | 194 | ||
192 | public event ClientClosed OnClientClosed; | 195 | public event ClientClosed OnClientClosed; |
193 | 196 | ||
194 | // Fired when a script is created | ||
195 | // The indication that a new script exists in this region. | ||
196 | public delegate void NewScript(UUID clientID, SceneObjectPart part, UUID itemID); | 197 | public delegate void NewScript(UUID clientID, SceneObjectPart part, UUID itemID); |
198 | |||
199 | /// <summary> | ||
200 | /// Fired when a script is created. | ||
201 | /// </summary> | ||
202 | /// <remarks> | ||
203 | /// Occurs before OnRezScript | ||
204 | /// </remarks> | ||
197 | public event NewScript OnNewScript; | 205 | public event NewScript OnNewScript; |
206 | |||
198 | public virtual void TriggerNewScript(UUID clientID, SceneObjectPart part, UUID itemID) | 207 | public virtual void TriggerNewScript(UUID clientID, SceneObjectPart part, UUID itemID) |
199 | { | 208 | { |
200 | NewScript handlerNewScript = OnNewScript; | 209 | NewScript handlerNewScript = OnNewScript; |
@@ -216,10 +225,16 @@ namespace OpenSim.Region.Framework.Scenes | |||
216 | } | 225 | } |
217 | } | 226 | } |
218 | 227 | ||
219 | //TriggerUpdateScript: triggered after Scene receives client's upload of updated script and stores it as asset | ||
220 | // An indication that the script has changed. | ||
221 | public delegate void UpdateScript(UUID clientID, UUID itemId, UUID primId, bool isScriptRunning, UUID newAssetID); | 228 | public delegate void UpdateScript(UUID clientID, UUID itemId, UUID primId, bool isScriptRunning, UUID newAssetID); |
229 | |||
230 | /// <summary> | ||
231 | /// An indication that the script has changed. | ||
232 | /// </summary> | ||
233 | /// <remarks> | ||
234 | /// Triggered after the scene receives a client's upload of an updated script and has stored it in an asset. | ||
235 | /// </remarks> | ||
222 | public event UpdateScript OnUpdateScript; | 236 | public event UpdateScript OnUpdateScript; |
237 | |||
223 | public virtual void TriggerUpdateScript(UUID clientId, UUID itemId, UUID primId, bool isScriptRunning, UUID newAssetID) | 238 | public virtual void TriggerUpdateScript(UUID clientId, UUID itemId, UUID primId, bool isScriptRunning, UUID newAssetID) |
224 | { | 239 | { |
225 | UpdateScript handlerUpdateScript = OnUpdateScript; | 240 | UpdateScript handlerUpdateScript = OnUpdateScript; |