diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/EventManager.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/EventManager.cs | 521 |
1 files changed, 505 insertions, 16 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs index 7916c42..8691b91 100644 --- a/OpenSim/Region/Framework/Scenes/EventManager.cs +++ b/OpenSim/Region/Framework/Scenes/EventManager.cs | |||
@@ -47,30 +47,75 @@ namespace OpenSim.Region.Framework.Scenes | |||
47 | 47 | ||
48 | public delegate void OnFrameDelegate(); | 48 | public delegate void OnFrameDelegate(); |
49 | 49 | ||
50 | /// <summary> | ||
51 | /// Triggered on each sim frame. | ||
52 | /// </summary> | ||
53 | /// <remarks> | ||
54 | /// This gets triggered in <see cref="OpenSim.Region.Framework.Scenes.Scene.Update"/> | ||
55 | /// Core uses it for things like Sun, Wind & Clouds | ||
56 | /// The MRM module also uses it. | ||
57 | /// </remarks> | ||
50 | public event OnFrameDelegate OnFrame; | 58 | public event OnFrameDelegate OnFrame; |
51 | 59 | ||
52 | public delegate void ClientMovement(ScenePresence client); | 60 | public delegate void ClientMovement(ScenePresence client); |
53 | 61 | ||
62 | /// <summary> | ||
63 | /// Trigerred when an agent moves. | ||
64 | /// </summary> | ||
65 | /// <remarks> | ||
66 | /// This gets triggered in <see cref="OpenSim.Region.Framework.Scenes.ScenePresence.HandleAgentUpdate"/> | ||
67 | /// prior to <see cref="OpenSim.Region.Framework.Scenes.ScenePresence.TriggerScenePresenceUpdated"/> | ||
68 | /// </remarks> | ||
54 | public event ClientMovement OnClientMovement; | 69 | public event ClientMovement OnClientMovement; |
55 | 70 | ||
56 | public delegate void OnTerrainTaintedDelegate(); | 71 | public delegate void OnTerrainTaintedDelegate(); |
57 | 72 | ||
73 | /// <summary> | ||
74 | /// Triggered if the terrain has been edited | ||
75 | /// </summary> | ||
76 | /// <remarks> | ||
77 | /// This gets triggered in <see cref="OpenSim.Region.CoreModules.World.Terrain.CheckForTerrainUpdates"/> | ||
78 | /// after it determines that an update has been made. | ||
79 | /// </remarks> | ||
58 | public event OnTerrainTaintedDelegate OnTerrainTainted; | 80 | public event OnTerrainTaintedDelegate OnTerrainTainted; |
59 | 81 | ||
60 | public delegate void OnTerrainTickDelegate(); | 82 | public delegate void OnTerrainTickDelegate(); |
61 | 83 | ||
62 | public delegate void OnTerrainUpdateDelegate(); | 84 | /// <summary> |
63 | 85 | /// Triggered if the terrain has been edited | |
86 | /// </summary> | ||
87 | /// <remarks> | ||
88 | /// This gets triggered in <see cref="OpenSim.Region.Framework.Scenes.Scene.UpdateTerrain"/> | ||
89 | /// but is used by core solely to update the physics engine. | ||
90 | /// </remarks> | ||
64 | public event OnTerrainTickDelegate OnTerrainTick; | 91 | public event OnTerrainTickDelegate OnTerrainTick; |
65 | 92 | ||
93 | public delegate void OnTerrainUpdateDelegate(); | ||
94 | |||
66 | public event OnTerrainUpdateDelegate OnTerrainUpdate; | 95 | public event OnTerrainUpdateDelegate OnTerrainUpdate; |
67 | 96 | ||
68 | public delegate void OnBackupDelegate(ISimulationDataService datastore, bool forceBackup); | 97 | public delegate void OnBackupDelegate(ISimulationDataService datastore, bool forceBackup); |
69 | 98 | ||
99 | /// <summary> | ||
100 | /// Triggered when a region is backed up/persisted to storage | ||
101 | /// </summary> | ||
102 | /// <remarks> | ||
103 | /// This gets triggered in <see cref="OpenSim.Region.Framework.Scenes.Scene.Backup"/> | ||
104 | /// and is fired before the persistence occurs. | ||
105 | /// </remarks> | ||
70 | public event OnBackupDelegate OnBackup; | 106 | public event OnBackupDelegate OnBackup; |
71 | 107 | ||
72 | public delegate void OnClientConnectCoreDelegate(IClientCore client); | 108 | public delegate void OnClientConnectCoreDelegate(IClientCore client); |
73 | 109 | ||
110 | /// <summary> | ||
111 | /// Triggered when a new client connects to the scene. | ||
112 | /// </summary> | ||
113 | /// <remarks> | ||
114 | /// This gets triggered in <see cref="TriggerOnNewClient"/>, | ||
115 | /// which checks if an instance of <see cref="OpenSim.Framework.IClientAPI"/> | ||
116 | /// also implements <see cref="OpenSim.Framework.Client.IClientCore"/> and as such, | ||
117 | /// is not triggered by <see cref="OpenSim.Region.OptionalModules.World.NPC">NPCs</see>. | ||
118 | /// </remarks> | ||
74 | public event OnClientConnectCoreDelegate OnClientConnect; | 119 | public event OnClientConnectCoreDelegate OnClientConnect; |
75 | 120 | ||
76 | public delegate void OnNewClientDelegate(IClientAPI client); | 121 | public delegate void OnNewClientDelegate(IClientAPI client); |
@@ -80,33 +125,96 @@ namespace OpenSim.Region.Framework.Scenes | |||
80 | /// </summary> | 125 | /// </summary> |
81 | /// <remarks> | 126 | /// <remarks> |
82 | /// This is triggered for both child and root agent client connections. | 127 | /// This is triggered for both child and root agent client connections. |
128 | /// | ||
83 | /// Triggered before OnClientLogin. | 129 | /// Triggered before OnClientLogin. |
130 | /// | ||
131 | /// This is triggered under per-agent lock. So if you want to perform any long-running operations, please | ||
132 | /// do this on a separate thread. | ||
84 | /// </remarks> | 133 | /// </remarks> |
85 | public event OnNewClientDelegate OnNewClient; | 134 | public event OnNewClientDelegate OnNewClient; |
86 | 135 | ||
87 | /// <summary> | 136 | /// <summary> |
88 | /// Fired if the client entering this sim is doing so as a new login | 137 | /// Fired if the client entering this sim is doing so as a new login |
89 | /// </summary> | 138 | /// </summary> |
139 | /// <remarks> | ||
140 | /// This is triggered under per-agent lock. So if you want to perform any long-running operations, please | ||
141 | /// do this on a separate thread. | ||
142 | /// </remarks> | ||
90 | public event Action<IClientAPI> OnClientLogin; | 143 | public event Action<IClientAPI> OnClientLogin; |
91 | 144 | ||
92 | public delegate void OnNewPresenceDelegate(ScenePresence presence); | 145 | public delegate void OnNewPresenceDelegate(ScenePresence presence); |
93 | 146 | ||
147 | /// <summary> | ||
148 | /// Triggered when a new presence is added to the scene | ||
149 | /// </summary> | ||
150 | /// <remarks> | ||
151 | /// Triggered in <see cref="OpenSim.Region.Framework.Scenes.Scene.AddNewClient"/> which is used by both | ||
152 | /// <see cref="OpenSim.Framework.PresenceType.User">users</see> and <see cref="OpenSim.Framework.PresenceType.Npc">NPCs</see> | ||
153 | /// </remarks> | ||
94 | public event OnNewPresenceDelegate OnNewPresence; | 154 | public event OnNewPresenceDelegate OnNewPresence; |
95 | 155 | ||
96 | public delegate void OnRemovePresenceDelegate(UUID agentId); | 156 | public delegate void OnRemovePresenceDelegate(UUID agentId); |
97 | 157 | ||
158 | /// <summary> | ||
159 | /// Triggered when a presence is removed from the scene | ||
160 | /// </summary> | ||
161 | /// <remarks> | ||
162 | /// Triggered in <see cref="OpenSim.Region.Framework.Scenes.Scene.AddNewClient"/> which is used by both | ||
163 | /// <see cref="OpenSim.Framework.PresenceType.User">users</see> and <see cref="OpenSim.Framework.PresenceType.Npc">NPCs</see> | ||
164 | /// | ||
165 | /// Triggered under per-agent lock. So if you want to perform any long-running operations, please | ||
166 | /// do this on a separate thread. | ||
167 | /// </remarks> | ||
98 | public event OnRemovePresenceDelegate OnRemovePresence; | 168 | public event OnRemovePresenceDelegate OnRemovePresence; |
99 | 169 | ||
100 | public delegate void OnParcelPrimCountUpdateDelegate(); | 170 | public delegate void OnParcelPrimCountUpdateDelegate(); |
101 | 171 | ||
172 | /// <summary> | ||
173 | /// Triggered whenever the prim count may have been altered, or prior | ||
174 | /// to an action that requires the current prim count to be accurate. | ||
175 | /// </summary> | ||
176 | /// <remarks> | ||
177 | /// Triggered by <see cref="TriggerParcelPrimCountUpdate"/> in | ||
178 | /// <see cref="OpenSim.OpenSimBase.CreateRegion"/>, | ||
179 | /// <see cref="OpenSim.Region.CoreModules.World.Land.LandManagementModule.EventManagerOnRequestParcelPrimCountUpdate"/>, | ||
180 | /// <see cref="OpenSim.Region.CoreModules.World.Land.LandManagementModule.ClientOnParcelObjectOwnerRequest"/>, | ||
181 | /// <see cref="OpenSim.Region.CoreModules.World.Land.LandObject.GetPrimsFree"/>, | ||
182 | /// <see cref="OpenSim.Region.CoreModules.World.Land.LandObject.UpdateLandSold"/>, | ||
183 | /// <see cref="OpenSim.Region.CoreModules.World.Land.LandObject.DeedToGroup"/>, | ||
184 | /// <see cref="OpenSim.Region.CoreModules.World.Land.LandObject.SendLandUpdateToClient"/> | ||
185 | /// </remarks> | ||
102 | public event OnParcelPrimCountUpdateDelegate OnParcelPrimCountUpdate; | 186 | public event OnParcelPrimCountUpdateDelegate OnParcelPrimCountUpdate; |
103 | 187 | ||
104 | public delegate void OnParcelPrimCountAddDelegate(SceneObjectGroup obj); | 188 | public delegate void OnParcelPrimCountAddDelegate(SceneObjectGroup obj); |
105 | 189 | ||
190 | /// <summary> | ||
191 | /// Triggered in response to <see cref="OnParcelPrimCountUpdate"/> for | ||
192 | /// objects that actually contribute to parcel prim count. | ||
193 | /// </summary> | ||
194 | /// <remarks> | ||
195 | /// Triggered by <see cref="TriggerParcelPrimCountAdd"/> in | ||
196 | /// <see cref="OpenSim.Region.CoreModules.World.Land.LandManagementModule.EventManagerOnParcelPrimCountUpdate"/> | ||
197 | /// </remarks> | ||
106 | public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd; | 198 | public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd; |
107 | 199 | ||
108 | public delegate void OnPluginConsoleDelegate(string[] args); | 200 | public delegate void OnPluginConsoleDelegate(string[] args); |
109 | 201 | ||
202 | /// <summary> | ||
203 | /// Triggered after <see cref="OpenSim.IApplicationPlugin.PostInitialise"/> | ||
204 | /// has been called for all <see cref="OpenSim.IApplicationPlugin"/> | ||
205 | /// loaded via <see cref="OpenSim.OpenSimBase.LoadPlugins"/>. | ||
206 | /// Handlers for this event are typically used to parse the arguments | ||
207 | /// from <see cref="OnPluginConsoleDelegate"/> in order to process or | ||
208 | /// filter the arguments and pass them onto <see cref="OpenSim.Region.CoreModules.Framework.InterfaceCommander.Commander.ProcessConsoleCommand"/> | ||
209 | /// </summary> | ||
210 | /// <remarks> | ||
211 | /// Triggered by <see cref="TriggerOnPluginConsole"/> in | ||
212 | /// <see cref="Scene.SendCommandToPlugins"/> via | ||
213 | /// <see cref="SceneManager.SendCommandToPluginModules"/> via | ||
214 | /// <see cref="OpenSim.OpenSimBase.HandleCommanderCommand"/> via | ||
215 | /// <see cref="OpenSim.OpenSimBase.AddPluginCommands"/> via | ||
216 | /// <see cref="OpenSim.OpenSimBase.StartupSpecific"/> | ||
217 | /// </remarks> | ||
110 | public event OnPluginConsoleDelegate OnPluginConsole; | 218 | public event OnPluginConsoleDelegate OnPluginConsole; |
111 | 219 | ||
112 | /// <summary> | 220 | /// <summary> |
@@ -121,8 +229,28 @@ namespace OpenSim.Region.Framework.Scenes | |||
121 | 229 | ||
122 | public delegate void OnSetRootAgentSceneDelegate(UUID agentID, Scene scene); | 230 | public delegate void OnSetRootAgentSceneDelegate(UUID agentID, Scene scene); |
123 | 231 | ||
232 | /// <summary> | ||
233 | /// Triggered before the grunt work for adding a root agent to a | ||
234 | /// scene has been performed (resuming attachment scripts, physics, | ||
235 | /// animations etc.) | ||
236 | /// </summary> | ||
237 | /// <remarks> | ||
238 | /// Triggered before <see cref="OnMakeRootAgent"/> | ||
239 | /// by <see cref="TriggerSetRootAgentScene"/> | ||
240 | /// in <see cref="ScenePresence.MakeRootAgent"/> | ||
241 | /// via <see cref="Scene.AgentCrossing"/> | ||
242 | /// and <see cref="ScenePresence.CompleteMovement"/> | ||
243 | /// </remarks> | ||
124 | public event OnSetRootAgentSceneDelegate OnSetRootAgentScene; | 244 | public event OnSetRootAgentSceneDelegate OnSetRootAgentScene; |
125 | 245 | ||
246 | /// <summary> | ||
247 | /// Triggered after parcel properties have been updated. | ||
248 | /// </summary> | ||
249 | /// <remarks> | ||
250 | /// Triggered by <see cref="TriggerOnParcelPropertiesUpdateRequest"/> in | ||
251 | /// <see cref="OpenSim.Region.CoreModules.World.Land.LandManagementModule.ClientOnParcelPropertiesUpdateRequest"/>, | ||
252 | /// <see cref="OpenSim.Region.CoreModules.World.Land.LandManagementModule.ProcessPropertiesUpdate"/> | ||
253 | /// </remarks> | ||
126 | public event ParcelPropertiesUpdateRequest OnParcelPropertiesUpdateRequest; | 254 | public event ParcelPropertiesUpdateRequest OnParcelPropertiesUpdateRequest; |
127 | 255 | ||
128 | /// <summary> | 256 | /// <summary> |
@@ -137,13 +265,45 @@ namespace OpenSim.Region.Framework.Scenes | |||
137 | /// <summary> | 265 | /// <summary> |
138 | /// Fired when an object is touched/grabbed. | 266 | /// Fired when an object is touched/grabbed. |
139 | /// </summary> | 267 | /// </summary> |
268 | /// <remarks> | ||
140 | /// The originalID is the local ID of the part that was actually touched. The localID itself is always that of | 269 | /// The originalID is the local ID of the part that was actually touched. The localID itself is always that of |
141 | /// the root part. | 270 | /// the root part. |
271 | /// Triggerd in response to <see cref="OpenSim.Framework.IClientAPI.OnGrabObject"/> | ||
272 | /// via <see cref="TriggerObjectGrab"/> | ||
273 | /// in <see cref="Scene.ProcessObjectGrab"/> | ||
274 | /// </remarks> | ||
142 | public event ObjectGrabDelegate OnObjectGrab; | 275 | public event ObjectGrabDelegate OnObjectGrab; |
143 | public delegate void ObjectGrabDelegate(uint localID, uint originalID, Vector3 offsetPos, IClientAPI remoteClient, SurfaceTouchEventArgs surfaceArgs); | 276 | public delegate void ObjectGrabDelegate(uint localID, uint originalID, Vector3 offsetPos, IClientAPI remoteClient, SurfaceTouchEventArgs surfaceArgs); |
144 | 277 | ||
278 | /// <summary> | ||
279 | /// Triggered when an object is being touched/grabbed continuously. | ||
280 | /// </summary> | ||
281 | /// <remarks> | ||
282 | /// Triggered in response to <see cref="OpenSim.Framework.IClientAPI.OnGrabUpdate"/> | ||
283 | /// via <see cref="TriggerObjectGrabbing"/> | ||
284 | /// in <see cref="Scene.ProcessObjectGrabUpdate"/> | ||
285 | /// </remarks> | ||
145 | public event ObjectGrabDelegate OnObjectGrabbing; | 286 | public event ObjectGrabDelegate OnObjectGrabbing; |
287 | |||
288 | /// <summary> | ||
289 | /// Triggered when an object stops being touched/grabbed. | ||
290 | /// </summary> | ||
291 | /// <remarks> | ||
292 | /// Triggered in response to <see cref="OpenSim.Framework.IClientAPI.OnDeGrabObject"/> | ||
293 | /// via <see cref="TriggerObjectDeGrab"/> | ||
294 | /// in <see cref="Scene.ProcessObjectDeGrab"/> | ||
295 | /// </remarks> | ||
146 | public event ObjectDeGrabDelegate OnObjectDeGrab; | 296 | public event ObjectDeGrabDelegate OnObjectDeGrab; |
297 | |||
298 | /// <summary> | ||
299 | /// Triggered when a script resets. | ||
300 | /// </summary> | ||
301 | /// <remarks> | ||
302 | /// Triggered by <see cref="TriggerScriptReset"/> | ||
303 | /// in <see cref="Scene.ProcessScriptReset"/> | ||
304 | /// via <see cref="OpenSim.Framework.IClientAPI.OnScriptReset"/> | ||
305 | /// via <see cref="OpenSim.Region.ClientStack.LindenUDP.LLClientView.HandleScriptReset"/> | ||
306 | /// </remarks> | ||
147 | public event ScriptResetDelegate OnScriptReset; | 307 | public event ScriptResetDelegate OnScriptReset; |
148 | 308 | ||
149 | public event OnPermissionErrorDelegate OnPermissionError; | 309 | public event OnPermissionErrorDelegate OnPermissionError; |
@@ -153,29 +313,105 @@ namespace OpenSim.Region.Framework.Scenes | |||
153 | /// </summary> | 313 | /// </summary> |
154 | /// <remarks> | 314 | /// <remarks> |
155 | /// Occurs after OnNewScript. | 315 | /// Occurs after OnNewScript. |
316 | /// Triggered by <see cref="TriggerRezScript"/> | ||
317 | /// in <see cref="SceneObjectPartInventory.CreateScriptInstance"/> | ||
156 | /// </remarks> | 318 | /// </remarks> |
157 | public event NewRezScript OnRezScript; | 319 | public event NewRezScript OnRezScript; |
158 | public delegate void NewRezScript(uint localID, UUID itemID, string script, int startParam, bool postOnRez, string engine, int stateSource); | 320 | public delegate void NewRezScript(uint localID, UUID itemID, string script, int startParam, bool postOnRez, string engine, int stateSource); |
159 | 321 | ||
160 | public delegate void RemoveScript(uint localID, UUID itemID); | 322 | public delegate void RemoveScript(uint localID, UUID itemID); |
323 | |||
324 | /// <summary> | ||
325 | /// Triggered when a script is removed from an object. | ||
326 | /// </summary> | ||
327 | /// <remarks> | ||
328 | /// Triggered by <see cref="TriggerRemoveScript"/> | ||
329 | /// in <see cref="Scene.RemoveTaskInventory"/>, | ||
330 | /// <see cref="Scene.CreateAgentInventoryItemFromTask"/>, | ||
331 | /// <see cref="SceneObjectPartInventory.RemoveScriptInstance"/>, | ||
332 | /// <see cref="SceneObjectPartInventory.RemoveInventoryItem"/> | ||
333 | /// </remarks> | ||
161 | public event RemoveScript OnRemoveScript; | 334 | public event RemoveScript OnRemoveScript; |
162 | 335 | ||
163 | public delegate void StartScript(uint localID, UUID itemID); | 336 | public delegate void StartScript(uint localID, UUID itemID); |
337 | |||
338 | /// <summary> | ||
339 | /// Triggered when a script starts. | ||
340 | /// </summary> | ||
341 | /// <remarks> | ||
342 | /// Triggered by <see cref="TriggerStartScript"/> | ||
343 | /// in <see cref="Scene.SetScriptRunning"/> | ||
344 | /// via <see cref="OpenSim.Framework.IClientAPI.OnSetScriptRunning"/>, | ||
345 | /// via <see cref="OpenSim.Region.ClientStack.LindenUDP.HandleSetScriptRunning"/> | ||
346 | /// </remarks> | ||
164 | public event StartScript OnStartScript; | 347 | public event StartScript OnStartScript; |
165 | 348 | ||
166 | public delegate void StopScript(uint localID, UUID itemID); | 349 | public delegate void StopScript(uint localID, UUID itemID); |
350 | |||
351 | /// <summary> | ||
352 | /// Triggered when a script stops. | ||
353 | /// </summary> | ||
354 | /// <remarks> | ||
355 | /// Triggered by <see cref="TriggerStopScript"/>, | ||
356 | /// in <see cref="SceneObjectPartInventory.CreateScriptInstance"/>, | ||
357 | /// <see cref="SceneObjectPartInventory.StopScriptInstance"/>, | ||
358 | /// <see cref="Scene.SetScriptRunning"/> | ||
359 | /// </remarks> | ||
167 | public event StopScript OnStopScript; | 360 | public event StopScript OnStopScript; |
168 | 361 | ||
169 | public delegate bool SceneGroupMoved(UUID groupID, Vector3 delta); | 362 | public delegate bool SceneGroupMoved(UUID groupID, Vector3 delta); |
363 | |||
364 | /// <summary> | ||
365 | /// Triggered when an object is moved. | ||
366 | /// </summary> | ||
367 | /// <remarks> | ||
368 | /// Triggered by <see cref="TriggerGroupMove"/> | ||
369 | /// in <see cref="SceneObjectGroup.UpdateGroupPosition"/>, | ||
370 | /// <see cref="SceneObjectGroup.GrabMovement"/> | ||
371 | /// </remarks> | ||
170 | public event SceneGroupMoved OnSceneGroupMove; | 372 | public event SceneGroupMoved OnSceneGroupMove; |
171 | 373 | ||
172 | public delegate void SceneGroupGrabed(UUID groupID, Vector3 offset, UUID userID); | 374 | public delegate void SceneGroupGrabed(UUID groupID, Vector3 offset, UUID userID); |
375 | |||
376 | /// <summary> | ||
377 | /// Triggered when an object is grabbed. | ||
378 | /// </summary> | ||
379 | /// <remarks> | ||
380 | /// Triggered by <see cref="TriggerGroupGrab"/> | ||
381 | /// in <see cref="SceneObjectGroup.OnGrabGroup"/> | ||
382 | /// via <see cref="SceneObjectGroup.ObjectGrabHandler"/> | ||
383 | /// via <see cref="Scene.ProcessObjectGrab"/> | ||
384 | /// via <see cref="OpenSim.Framework.IClientAPI.OnGrabObject"/> | ||
385 | /// via <see cref="OpenSim.Region.ClientStack.LindenUDP.LLClientView.HandleObjectGrab"/> | ||
386 | /// </remarks> | ||
173 | public event SceneGroupGrabed OnSceneGroupGrab; | 387 | public event SceneGroupGrabed OnSceneGroupGrab; |
174 | 388 | ||
175 | public delegate bool SceneGroupSpinStarted(UUID groupID); | 389 | public delegate bool SceneGroupSpinStarted(UUID groupID); |
390 | |||
391 | /// <summary> | ||
392 | /// Triggered when an object starts to spin. | ||
393 | /// </summary> | ||
394 | /// <remarks> | ||
395 | /// Triggered by <see cref="TriggerGroupSpinStart"/> | ||
396 | /// in <see cref="SceneObjectGroup.SpinStart"/> | ||
397 | /// via <see cref="SceneGraph.SpinStart"/> | ||
398 | /// via <see cref="OpenSim.Framework.IClientAPI.OnSpinStart"/> | ||
399 | /// via <see cref="OpenSim.Region.ClientStack.LindenUDP.LLClientView.HandleObjectSpinStart"/> | ||
400 | /// </remarks> | ||
176 | public event SceneGroupSpinStarted OnSceneGroupSpinStart; | 401 | public event SceneGroupSpinStarted OnSceneGroupSpinStart; |
177 | 402 | ||
178 | public delegate bool SceneGroupSpun(UUID groupID, Quaternion rotation); | 403 | public delegate bool SceneGroupSpun(UUID groupID, Quaternion rotation); |
404 | |||
405 | /// <summary> | ||
406 | /// Triggered when an object is being spun. | ||
407 | /// </summary> | ||
408 | /// <remarks> | ||
409 | /// Triggered by <see cref="TriggerGroupSpin"/> | ||
410 | /// in <see cref="SceneObjectGroup.SpinMovement"/> | ||
411 | /// via <see cref="SceneGraph.SpinObject"/> | ||
412 | /// via <see cref="OpenSim.Framework.IClientAPI.OnSpinUpdate"/> | ||
413 | /// via <see cref="OpenSim.Region.ClientStack.LindenUDP.LLClientView.HandleObjectSpinUpdate"/> | ||
414 | /// </remarks> | ||
179 | public event SceneGroupSpun OnSceneGroupSpin; | 415 | public event SceneGroupSpun OnSceneGroupSpin; |
180 | 416 | ||
181 | public delegate void LandObjectAdded(ILandObject newParcel); | 417 | public delegate void LandObjectAdded(ILandObject newParcel); |
@@ -204,6 +440,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
204 | /// </summary> | 440 | /// </summary> |
205 | /// <remarks> | 441 | /// <remarks> |
206 | /// At the point of firing, the scene still contains the client's scene presence. | 442 | /// At the point of firing, the scene still contains the client's scene presence. |
443 | /// | ||
444 | /// This is triggered under per-agent lock. So if you want to perform any long-running operations, please | ||
445 | /// do this on a separate thread. | ||
207 | /// </remarks> | 446 | /// </remarks> |
208 | public event ClientClosed OnClientClosed; | 447 | public event ClientClosed OnClientClosed; |
209 | 448 | ||
@@ -214,6 +453,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
214 | /// </summary> | 453 | /// </summary> |
215 | /// <remarks> | 454 | /// <remarks> |
216 | /// Occurs before OnRezScript | 455 | /// Occurs before OnRezScript |
456 | /// Triggered by <see cref="TriggerNewScript"/> | ||
457 | /// in <see cref="Scene.RezScriptFromAgentInventory"/>, | ||
458 | /// <see cref="Scene.RezNewScript"/> | ||
217 | /// </remarks> | 459 | /// </remarks> |
218 | public event NewScript OnNewScript; | 460 | public event NewScript OnNewScript; |
219 | 461 | ||
@@ -248,6 +490,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
248 | /// </summary> | 490 | /// </summary> |
249 | /// <remarks> | 491 | /// <remarks> |
250 | /// Triggered after the scene receives a client's upload of an updated script and has stored it in an asset. | 492 | /// Triggered after the scene receives a client's upload of an updated script and has stored it in an asset. |
493 | /// Triggered by <see cref="TriggerUpdateScript"/> | ||
494 | /// in <see cref="Scene.CapsUpdateTaskInventoryScriptAsset"/> | ||
495 | /// via <see cref="Scene.CapsUpdateTaskInventoryScriptAsset"/> | ||
496 | /// via <see cref="OpenSim.Region.ClientStack.Linden.BunchOfCaps.TaskScriptUpdated"/> | ||
497 | /// via <see cref="OpenSim.Region.ClientStack.Linden.TaskInventoryScriptUpdater.OnUpLoad"/> | ||
498 | /// via <see cref="OpenSim.Region.ClientStack.Linden.TaskInventoryScriptUpdater.uploaderCaps"/> | ||
251 | /// </remarks> | 499 | /// </remarks> |
252 | public event UpdateScript OnUpdateScript; | 500 | public event UpdateScript OnUpdateScript; |
253 | 501 | ||
@@ -273,48 +521,203 @@ namespace OpenSim.Region.Framework.Scenes | |||
273 | } | 521 | } |
274 | 522 | ||
275 | /// <summary> | 523 | /// <summary> |
524 | /// Triggered when some scene object properties change. | ||
525 | /// </summary> | ||
526 | /// <remarks> | ||
276 | /// ScriptChangedEvent is fired when a scene object property that a script might be interested | 527 | /// ScriptChangedEvent is fired when a scene object property that a script might be interested |
277 | /// in (such as color, scale or inventory) changes. Only enough information sent is for the LSL changed event. | 528 | /// in (such as color, scale or inventory) changes. Only enough information sent is for the LSL changed event. |
278 | /// This is not an indication that the script has changed (see OnUpdateScript for that). | 529 | /// This is not an indication that the script has changed (see OnUpdateScript for that). |
279 | /// This event is sent to a script to tell it that some property changed on | 530 | /// This event is sent to a script to tell it that some property changed on |
280 | /// the object the script is in. See http://lslwiki.net/lslwiki/wakka.php?wakka=changed . | 531 | /// the object the script is in. See http://lslwiki.net/lslwiki/wakka.php?wakka=changed . |
281 | /// </summary> | 532 | /// Triggered by <see cref="TriggerOnScriptChangedEvent"/> |
533 | /// in <see cref="OpenSim.Region.CoreModules.Framework.EntityTransfer.EntityTransferModule.TeleportAgentWithinRegion"/>, | ||
534 | /// <see cref="SceneObjectPart.TriggerScriptChangedEvent"/> | ||
535 | /// </remarks> | ||
282 | public event ScriptChangedEvent OnScriptChangedEvent; | 536 | public event ScriptChangedEvent OnScriptChangedEvent; |
283 | public delegate void ScriptChangedEvent(uint localID, uint change); | 537 | public delegate void ScriptChangedEvent(uint localID, uint change); |
284 | 538 | ||
285 | public delegate void ScriptControlEvent(UUID item, UUID avatarID, uint held, uint changed); | 539 | public delegate void ScriptControlEvent(UUID item, UUID avatarID, uint held, uint changed); |
540 | |||
541 | /// <summary> | ||
542 | /// Triggered when a script receives control input from an agent. | ||
543 | /// </summary> | ||
544 | /// <remarks> | ||
545 | /// Triggered by <see cref="TriggerControlEvent"/> | ||
546 | /// in <see cref="ScenePresence.SendControlsToScripts"/> | ||
547 | /// via <see cref="ScenePresence.HandleAgentUpdate"/> | ||
548 | /// via <see cref="OpenSim.Framework.IClientAPI.OnAgentUpdate"/> | ||
549 | /// via <see cref="OpenSim.Region.ClientStack.LindenUDP.LLClientView.HandleAgentUpdate"/> | ||
550 | /// </remarks> | ||
286 | public event ScriptControlEvent OnScriptControlEvent; | 551 | public event ScriptControlEvent OnScriptControlEvent; |
287 | 552 | ||
288 | public delegate void ScriptAtTargetEvent(uint localID, uint handle, Vector3 targetpos, Vector3 atpos); | 553 | public delegate void ScriptAtTargetEvent(uint localID, uint handle, Vector3 targetpos, Vector3 atpos); |
554 | |||
555 | /// <summary> | ||
556 | /// Triggered when an object has arrived within a tolerance distance | ||
557 | /// of a motion target. | ||
558 | /// </summary> | ||
559 | /// <remarks> | ||
560 | /// Triggered by <see cref="TriggerAtTargetEvent"/> | ||
561 | /// in <see cref="SceneObjectGroup.checkAtTargets"/> | ||
562 | /// via <see cref="SceneObjectGroup.ScheduleGroupForFullUpdate"/>, | ||
563 | /// <see cref="Scene.CheckAtTargets"/> via <see cref="Scene.Update"/> | ||
564 | /// </remarks> | ||
289 | public event ScriptAtTargetEvent OnScriptAtTargetEvent; | 565 | public event ScriptAtTargetEvent OnScriptAtTargetEvent; |
290 | 566 | ||
291 | public delegate void ScriptNotAtTargetEvent(uint localID); | 567 | public delegate void ScriptNotAtTargetEvent(uint localID); |
568 | |||
569 | /// <summary> | ||
570 | /// Triggered when an object has a motion target but has not arrived | ||
571 | /// within a tolerance distance. | ||
572 | /// </summary> | ||
573 | /// <remarks> | ||
574 | /// Triggered by <see cref="TriggerNotAtTargetEvent"/> | ||
575 | /// in <see cref="SceneObjectGroup.checkAtTargets"/> | ||
576 | /// via <see cref="SceneObjectGroup.ScheduleGroupForFullUpdate"/>, | ||
577 | /// <see cref="Scene.CheckAtTargets"/> via <see cref="Scene.Update"/> | ||
578 | /// </remarks> | ||
292 | public event ScriptNotAtTargetEvent OnScriptNotAtTargetEvent; | 579 | public event ScriptNotAtTargetEvent OnScriptNotAtTargetEvent; |
293 | 580 | ||
294 | public delegate void ScriptAtRotTargetEvent(uint localID, uint handle, Quaternion targetrot, Quaternion atrot); | 581 | public delegate void ScriptAtRotTargetEvent(uint localID, uint handle, Quaternion targetrot, Quaternion atrot); |
582 | |||
583 | /// <summary> | ||
584 | /// Triggered when an object has arrived within a tolerance rotation | ||
585 | /// of a rotation target. | ||
586 | /// </summary> | ||
587 | /// <remarks> | ||
588 | /// Triggered by <see cref="TriggerAtRotTargetEvent"/> | ||
589 | /// in <see cref="SceneObjectGroup.checkAtTargets"/> | ||
590 | /// via <see cref="SceneObjectGroup.ScheduleGroupForFullUpdate"/>, | ||
591 | /// <see cref="Scene.CheckAtTargets"/> via <see cref="Scene.Update"/> | ||
592 | /// </remarks> | ||
295 | public event ScriptAtRotTargetEvent OnScriptAtRotTargetEvent; | 593 | public event ScriptAtRotTargetEvent OnScriptAtRotTargetEvent; |
296 | 594 | ||
297 | public delegate void ScriptNotAtRotTargetEvent(uint localID); | 595 | public delegate void ScriptNotAtRotTargetEvent(uint localID); |
596 | |||
597 | /// <summary> | ||
598 | /// Triggered when an object has a rotation target but has not arrived | ||
599 | /// within a tolerance rotation. | ||
600 | /// </summary> | ||
601 | /// <remarks> | ||
602 | /// Triggered by <see cref="TriggerNotAtRotTargetEvent"/> | ||
603 | /// in <see cref="SceneObjectGroup.checkAtTargets"/> | ||
604 | /// via <see cref="SceneObjectGroup.ScheduleGroupForFullUpdate"/>, | ||
605 | /// <see cref="Scene.CheckAtTargets"/> via <see cref="Scene.Update"/> | ||
606 | /// </remarks> | ||
298 | public event ScriptNotAtRotTargetEvent OnScriptNotAtRotTargetEvent; | 607 | public event ScriptNotAtRotTargetEvent OnScriptNotAtRotTargetEvent; |
299 | 608 | ||
300 | public delegate void ScriptColliding(uint localID, ColliderArgs colliders); | 609 | public delegate void ScriptColliding(uint localID, ColliderArgs colliders); |
610 | |||
611 | /// <summary> | ||
612 | /// Triggered when a physical collision has started between a prim | ||
613 | /// and something other than the region terrain. | ||
614 | /// </summary> | ||
615 | /// <remarks> | ||
616 | /// Triggered by <see cref="TriggerScriptCollidingStart"/> | ||
617 | /// in <see cref="SceneObjectPart.SendCollisionEvent"/> | ||
618 | /// via <see cref="SceneObjectPart.PhysicsCollision"/> | ||
619 | /// via <see cref="OpenSim.Region.Physics.Manager.PhysicsActor.OnCollisionUpdate"/> | ||
620 | /// via <see cref="OpenSim.Region.Physics.Manager.PhysicsActor.SendCollisionUpdate"/> | ||
621 | /// </remarks> | ||
301 | public event ScriptColliding OnScriptColliderStart; | 622 | public event ScriptColliding OnScriptColliderStart; |
623 | |||
624 | /// <summary> | ||
625 | /// Triggered when something that previously collided with a prim has | ||
626 | /// not stopped colliding with it. | ||
627 | /// </summary> | ||
628 | /// <remarks> | ||
629 | /// <seealso cref="OnScriptColliderStart"/> | ||
630 | /// Triggered by <see cref="TriggerScriptColliding"/> | ||
631 | /// in <see cref="SceneObjectPart.SendCollisionEvent"/> | ||
632 | /// via <see cref="SceneObjectPart.PhysicsCollision"/> | ||
633 | /// via <see cref="OpenSim.Region.Physics.Manager.PhysicsActor.OnCollisionUpdate"/> | ||
634 | /// via <see cref="OpenSim.Region.Physics.Manager.PhysicsActor.SendCollisionUpdate"/> | ||
635 | /// </remarks> | ||
302 | public event ScriptColliding OnScriptColliding; | 636 | public event ScriptColliding OnScriptColliding; |
637 | |||
638 | /// <summary> | ||
639 | /// Triggered when something that previously collided with a prim has | ||
640 | /// stopped colliding with it. | ||
641 | /// </summary> | ||
642 | /// <remarks> | ||
643 | /// Triggered by <see cref="TriggerScriptCollidingEnd"/> | ||
644 | /// in <see cref="SceneObjectPart.SendCollisionEvent"/> | ||
645 | /// via <see cref="SceneObjectPart.PhysicsCollision"/> | ||
646 | /// via <see cref="OpenSim.Region.Physics.Manager.PhysicsActor.OnCollisionUpdate"/> | ||
647 | /// via <see cref="OpenSim.Region.Physics.Manager.PhysicsActor.SendCollisionUpdate"/> | ||
648 | /// </remarks> | ||
303 | public event ScriptColliding OnScriptCollidingEnd; | 649 | public event ScriptColliding OnScriptCollidingEnd; |
650 | |||
651 | /// <summary> | ||
652 | /// Triggered when a physical collision has started between an object | ||
653 | /// and the region terrain. | ||
654 | /// </summary> | ||
655 | /// <remarks> | ||
656 | /// Triggered by <see cref="TriggerScriptLandCollidingStart"/> | ||
657 | /// in <see cref="SceneObjectPart.SendLandCollisionEvent"/> | ||
658 | /// via <see cref="SceneObjectPart.PhysicsCollision"/> | ||
659 | /// via <see cref="OpenSim.Region.Physics.Manager.PhysicsActor.OnCollisionUpdate"/> | ||
660 | /// via <see cref="OpenSim.Region.Physics.Manager.PhysicsActor.SendCollisionUpdate"/> | ||
661 | /// </remarks> | ||
304 | public event ScriptColliding OnScriptLandColliderStart; | 662 | public event ScriptColliding OnScriptLandColliderStart; |
663 | |||
664 | /// <summary> | ||
665 | /// Triggered when an object that previously collided with the region | ||
666 | /// terrain has not yet stopped colliding with it. | ||
667 | /// </summary> | ||
668 | /// <remarks> | ||
669 | /// Triggered by <see cref="TriggerScriptLandColliding"/> | ||
670 | /// in <see cref="SceneObjectPart.SendLandCollisionEvent"/> | ||
671 | /// via <see cref="SceneObjectPart.PhysicsCollision"/> | ||
672 | /// via <see cref="OpenSim.Region.Physics.Manager.PhysicsActor.OnCollisionUpdate"/> | ||
673 | /// via <see cref="OpenSim.Region.Physics.Manager.PhysicsActor.SendCollisionUpdate"/> | ||
674 | /// </remarks> | ||
305 | public event ScriptColliding OnScriptLandColliding; | 675 | public event ScriptColliding OnScriptLandColliding; |
676 | |||
677 | /// <summary> | ||
678 | /// Triggered when an object that previously collided with the region | ||
679 | /// terrain has stopped colliding with it. | ||
680 | /// </summary> | ||
681 | /// <remarks> | ||
682 | /// Triggered by <see cref="TriggerScriptLandCollidingEnd"/> | ||
683 | /// in <see cref="SceneObjectPart.SendLandCollisionEvent"/> | ||
684 | /// via <see cref="SceneObjectPart.PhysicsCollision"/> | ||
685 | /// via <see cref="OpenSim.Region.Physics.Manager.PhysicsActor.OnCollisionUpdate"/> | ||
686 | /// via <see cref="OpenSim.Region.Physics.Manager.PhysicsActor.SendCollisionUpdate"/> | ||
687 | /// </remarks> | ||
306 | public event ScriptColliding OnScriptLandColliderEnd; | 688 | public event ScriptColliding OnScriptLandColliderEnd; |
307 | 689 | ||
308 | public delegate void OnMakeChildAgentDelegate(ScenePresence presence); | 690 | public delegate void OnMakeChildAgentDelegate(ScenePresence presence); |
691 | |||
692 | /// <summary> | ||
693 | /// Triggered when an agent has been made a child agent of a scene. | ||
694 | /// </summary> | ||
695 | /// <remarks> | ||
696 | /// Triggered by <see cref="TriggerOnMakeChildAgent"/> | ||
697 | /// in <see cref="ScenePresence.MakeChildAgent"/> | ||
698 | /// via <see cref="OpenSim.Region.CoreModules.Framework.EntityTransfer.EntityTransferModule.CrossAgentToNewRegionAsync"/>, | ||
699 | /// <see cref="OpenSim.Region.CoreModules.Framework.EntityTransfer.EntityTransferModule.DoTeleport"/>, | ||
700 | /// <see cref="OpenSim.Region.CoreModules.InterGrid.KillAUser.ShutdownNoLogout"/> | ||
701 | /// </remarks> | ||
309 | public event OnMakeChildAgentDelegate OnMakeChildAgent; | 702 | public event OnMakeChildAgentDelegate OnMakeChildAgent; |
310 | 703 | ||
311 | public delegate void OnSaveNewWindlightProfileDelegate(); | 704 | public delegate void OnSaveNewWindlightProfileDelegate(); |
312 | public delegate void OnSendNewWindlightProfileTargetedDelegate(RegionLightShareData wl, UUID user); | 705 | public delegate void OnSendNewWindlightProfileTargetedDelegate(RegionLightShareData wl, UUID user); |
313 | 706 | ||
314 | /// <summary> | 707 | /// <summary> |
708 | /// Triggered after the grunt work for adding a root agent to a | ||
709 | /// scene has been performed (resuming attachment scripts, physics, | ||
710 | /// animations etc.) | ||
711 | /// </summary> | ||
712 | /// <remarks> | ||
315 | /// This event is on the critical path for transferring an avatar from one region to another. Try and do | 713 | /// This event is on the critical path for transferring an avatar from one region to another. Try and do |
316 | /// as little work on this event as possible, or do work asynchronously. | 714 | /// as little work on this event as possible, or do work asynchronously. |
317 | /// </summary> | 715 | /// Triggered after <see cref="OnSetRootAgentScene"/> |
716 | /// by <see cref="TriggerOnMakeRootAgent"/> | ||
717 | /// in <see cref="ScenePresence.MakeRootAgent"/> | ||
718 | /// via <see cref="Scene.AgentCrossing"/> | ||
719 | /// and <see cref="ScenePresence.CompleteMovement"/> | ||
720 | /// </remarks> | ||
318 | public event Action<ScenePresence> OnMakeRootAgent; | 721 | public event Action<ScenePresence> OnMakeRootAgent; |
319 | 722 | ||
320 | public event OnSendNewWindlightProfileTargetedDelegate OnSendNewWindlightProfileTargeted; | 723 | public event OnSendNewWindlightProfileTargetedDelegate OnSendNewWindlightProfileTargeted; |
@@ -340,9 +743,17 @@ namespace OpenSim.Region.Framework.Scenes | |||
340 | public event AvatarKillData OnAvatarKilled; | 743 | public event AvatarKillData OnAvatarKilled; |
341 | public delegate void AvatarKillData(uint KillerLocalID, ScenePresence avatar); | 744 | public delegate void AvatarKillData(uint KillerLocalID, ScenePresence avatar); |
342 | 745 | ||
343 | // public delegate void ScriptTimerEvent(uint localID, double timerinterval); | 746 | /* |
344 | 747 | public delegate void ScriptTimerEvent(uint localID, double timerinterval); | |
345 | // public event ScriptTimerEvent OnScriptTimerEvent; | 748 | /// <summary> |
749 | /// Used to be triggered when the LSL timer event fires. | ||
750 | /// </summary> | ||
751 | /// <remarks> | ||
752 | /// Triggered by <see cref="TriggerTimerEvent"/> | ||
753 | /// via <see cref="SceneObjectPart.handleTimerAccounting"/> | ||
754 | /// </remarks> | ||
755 | public event ScriptTimerEvent OnScriptTimerEvent; | ||
756 | */ | ||
346 | 757 | ||
347 | public delegate void EstateToolsSunUpdate(ulong regionHandle, bool FixedTime, bool EstateSun, float LindenHour); | 758 | public delegate void EstateToolsSunUpdate(ulong regionHandle, bool FixedTime, bool EstateSun, float LindenHour); |
348 | public delegate void GetScriptRunning(IClientAPI controllingClient, UUID objectID, UUID itemID); | 759 | public delegate void GetScriptRunning(IClientAPI controllingClient, UUID objectID, UUID itemID); |
@@ -352,12 +763,27 @@ namespace OpenSim.Region.Framework.Scenes | |||
352 | /// <summary> | 763 | /// <summary> |
353 | /// Triggered when an object is added to the scene. | 764 | /// Triggered when an object is added to the scene. |
354 | /// </summary> | 765 | /// </summary> |
766 | /// <remarks> | ||
767 | /// Triggered by <see cref="TriggerObjectAddedToScene"/> | ||
768 | /// in <see cref="Scene.AddNewSceneObject"/>, | ||
769 | /// <see cref="Scene.DuplicateObject"/>, | ||
770 | /// <see cref="Scene.doObjectDuplicateOnRay"/> | ||
771 | /// </remarks> | ||
355 | public event Action<SceneObjectGroup> OnObjectAddedToScene; | 772 | public event Action<SceneObjectGroup> OnObjectAddedToScene; |
356 | 773 | ||
357 | /// <summary> | 774 | /// <summary> |
358 | /// Triggered when an object is removed from the scene. | 775 | /// Delegate for <see cref="OnObjectBeingRemovedFromScene"/> |
359 | /// </summary> | 776 | /// </summary> |
777 | /// <param name="obj">The object being removed from the scene</param> | ||
360 | public delegate void ObjectBeingRemovedFromScene(SceneObjectGroup obj); | 778 | public delegate void ObjectBeingRemovedFromScene(SceneObjectGroup obj); |
779 | |||
780 | /// <summary> | ||
781 | /// Triggered when an object is removed from the scene. | ||
782 | /// </summary> | ||
783 | /// <remarks> | ||
784 | /// Triggered by <see cref="TriggerObjectBeingRemovedFromScene"/> | ||
785 | /// in <see cref="Scene.DeleteSceneObject"/> | ||
786 | /// </remarks> | ||
361 | public event ObjectBeingRemovedFromScene OnObjectBeingRemovedFromScene; | 787 | public event ObjectBeingRemovedFromScene OnObjectBeingRemovedFromScene; |
362 | 788 | ||
363 | public delegate void NoticeNoLandDataFromStorage(); | 789 | public delegate void NoticeNoLandDataFromStorage(); |
@@ -373,6 +799,20 @@ namespace OpenSim.Region.Framework.Scenes | |||
373 | public event RequestParcelPrimCountUpdate OnRequestParcelPrimCountUpdate; | 799 | public event RequestParcelPrimCountUpdate OnRequestParcelPrimCountUpdate; |
374 | 800 | ||
375 | public delegate void ParcelPrimCountTainted(); | 801 | public delegate void ParcelPrimCountTainted(); |
802 | |||
803 | /// <summary> | ||
804 | /// Triggered when the parcel prim count has been altered. | ||
805 | /// </summary> | ||
806 | /// <remarks> | ||
807 | /// Triggered by <see cref="TriggerParcelPrimCountTainted"/> in | ||
808 | /// <see cref="OpenSim.Region.CoreModules.Avatar.Attachments.AttachmentsModule.DetachSingleAttachmentToGround"/>, | ||
809 | /// <see cref="OpenSim.Region.CoreModules.Avatar.Attachments.AttachmentsModule.AttachToAgent"/>, | ||
810 | /// <see cref="Scene.DeleteSceneObject"/>, | ||
811 | /// <see cref="Scene.SelectPrim"/>, | ||
812 | /// <see cref="Scene.DeselectPrim"/>, | ||
813 | /// <see cref="SceneObjectGroup.UpdatePrimFlags"/>, | ||
814 | /// <see cref="SceneObjectGroup.AbsolutePosition"/> | ||
815 | /// </remarks> | ||
376 | public event ParcelPrimCountTainted OnParcelPrimCountTainted; | 816 | public event ParcelPrimCountTainted OnParcelPrimCountTainted; |
377 | public event GetScriptRunning OnGetScriptRunning; | 817 | public event GetScriptRunning OnGetScriptRunning; |
378 | 818 | ||
@@ -432,7 +872,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
432 | /// the scripts may not have started yet | 872 | /// the scripts may not have started yet |
433 | /// Message is non empty string if there were problems loading the oar file | 873 | /// Message is non empty string if there were problems loading the oar file |
434 | /// </summary> | 874 | /// </summary> |
435 | public delegate void OarFileLoaded(Guid guid, string message); | 875 | public delegate void OarFileLoaded(Guid guid, List<UUID> loadedScenes, string message); |
436 | public event OarFileLoaded OnOarFileLoaded; | 876 | public event OarFileLoaded OnOarFileLoaded; |
437 | 877 | ||
438 | /// <summary> | 878 | /// <summary> |
@@ -485,10 +925,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
485 | /// <param name="copy"></param> | 925 | /// <param name="copy"></param> |
486 | /// <param name="original"></param> | 926 | /// <param name="original"></param> |
487 | /// <param name="userExposed">True if the duplicate will immediately be in the scene, false otherwise</param> | 927 | /// <param name="userExposed">True if the duplicate will immediately be in the scene, false otherwise</param> |
928 | /// <remarks> | ||
929 | /// Triggered in <see cref="OpenSim.Region.Framework.Scenes.SceneObjectPart.Copy"/> | ||
930 | /// </remarks> | ||
488 | public event SceneObjectPartCopyDelegate OnSceneObjectPartCopy; | 931 | public event SceneObjectPartCopyDelegate OnSceneObjectPartCopy; |
489 | public delegate void SceneObjectPartCopyDelegate(SceneObjectPart copy, SceneObjectPart original, bool userExposed); | 932 | public delegate void SceneObjectPartCopyDelegate(SceneObjectPart copy, SceneObjectPart original, bool userExposed); |
490 | 933 | ||
491 | public delegate void SceneObjectPartUpdated(SceneObjectPart sop); | 934 | public delegate void SceneObjectPartUpdated(SceneObjectPart sop, bool full); |
492 | public event SceneObjectPartUpdated OnSceneObjectPartUpdated; | 935 | public event SceneObjectPartUpdated OnSceneObjectPartUpdated; |
493 | 936 | ||
494 | public delegate void ScenePresenceUpdated(ScenePresence sp); | 937 | public delegate void ScenePresenceUpdated(ScenePresence sp); |
@@ -526,9 +969,28 @@ namespace OpenSim.Region.Framework.Scenes | |||
526 | public event PrimsLoaded OnPrimsLoaded; | 969 | public event PrimsLoaded OnPrimsLoaded; |
527 | 970 | ||
528 | public delegate void TeleportStart(IClientAPI client, GridRegion destination, GridRegion finalDestination, uint teleportFlags, bool gridLogout); | 971 | public delegate void TeleportStart(IClientAPI client, GridRegion destination, GridRegion finalDestination, uint teleportFlags, bool gridLogout); |
972 | |||
973 | /// <summary> | ||
974 | /// Triggered when a teleport starts | ||
975 | /// </summary> | ||
976 | /// <remarks> | ||
977 | /// Triggered by <see cref="TriggerTeleportStart"/> | ||
978 | /// in <see cref="OpenSim.Region.CoreModules.Framework.EntityTransfer.EntityTransferModule.CreateAgent"/> | ||
979 | /// and <see cref="OpenSim.Region.CoreModules.Framework.EntityTransfer.HGEntityTransferModule.CreateAgent"/> | ||
980 | /// via <see cref="OpenSim.Region.CoreModules.Framework.EntityTransfer.EntityTransferModule.DoTeleport"/> | ||
981 | /// </remarks> | ||
529 | public event TeleportStart OnTeleportStart; | 982 | public event TeleportStart OnTeleportStart; |
530 | 983 | ||
531 | public delegate void TeleportFail(IClientAPI client, bool gridLogout); | 984 | public delegate void TeleportFail(IClientAPI client, bool gridLogout); |
985 | |||
986 | /// <summary> | ||
987 | /// Trigered when a teleport fails. | ||
988 | /// </summary> | ||
989 | /// <remarks> | ||
990 | /// Triggered by <see cref="TriggerTeleportFail"/> | ||
991 | /// in <see cref="OpenSim.Region.CoreModules.Framework.EntityTransfer.EntityTransferModule.Fail"/> | ||
992 | /// via <see cref="OpenSim.Region.CoreModules.Framework.EntityTransfer.EntityTransferModule.DoTeleport"/> | ||
993 | /// </remarks> | ||
532 | public event TeleportFail OnTeleportFail; | 994 | public event TeleportFail OnTeleportFail; |
533 | 995 | ||
534 | public class MoneyTransferArgs : EventArgs | 996 | public class MoneyTransferArgs : EventArgs |
@@ -536,7 +998,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
536 | public UUID sender; | 998 | public UUID sender; |
537 | public UUID receiver; | 999 | public UUID receiver; |
538 | 1000 | ||
539 | // Always false. The SL protocol sucks. | 1001 | /// <summary> |
1002 | /// Always false. The SL protocol sucks. | ||
1003 | /// </summary> | ||
540 | public bool authenticated = false; | 1004 | public bool authenticated = false; |
541 | 1005 | ||
542 | public int amount; | 1006 | public int amount; |
@@ -593,8 +1057,29 @@ namespace OpenSim.Region.Framework.Scenes | |||
593 | 1057 | ||
594 | public delegate void LandBuy(Object sender, LandBuyArgs e); | 1058 | public delegate void LandBuy(Object sender, LandBuyArgs e); |
595 | 1059 | ||
1060 | /// <summary> | ||
1061 | /// Triggered when an attempt to transfer grid currency occurs | ||
1062 | /// </summary> | ||
1063 | /// <remarks> | ||
1064 | /// Triggered in <see cref="OpenSim.Region.Framework.Scenes.Scene.ProcessMoneyTransferRequest"/> | ||
1065 | /// via <see cref="OpenSim.Region.Framework.Scenes.Scene.SubscribeToClientGridEvents"/> | ||
1066 | /// via <see cref="OpenSim.Region.Framework.Scenes.Scene.SubscribeToClientEvents"/> | ||
1067 | /// via <see cref="OpenSim.Region.Framework.Scenes.Scene.AddNewClient"/> | ||
1068 | /// </remarks> | ||
596 | public event MoneyTransferEvent OnMoneyTransfer; | 1069 | public event MoneyTransferEvent OnMoneyTransfer; |
1070 | |||
1071 | /// <summary> | ||
1072 | /// Triggered after after <see cref="OnValidateLandBuy"/> | ||
1073 | /// </summary> | ||
597 | public event LandBuy OnLandBuy; | 1074 | public event LandBuy OnLandBuy; |
1075 | |||
1076 | /// <summary> | ||
1077 | /// Triggered to allow or prevent a real estate transaction | ||
1078 | /// </summary> | ||
1079 | /// <remarks> | ||
1080 | /// Triggered in <see cref="OpenSim.Region.Framework.Scenes.Scene.ProcessParcelBuy"/> | ||
1081 | /// <seealso cref="OpenSim.Region.OptionalModules.World.MoneyModule.SampleMoneyModule.ValidateLandBuy"/> | ||
1082 | /// </remarks> | ||
598 | public event LandBuy OnValidateLandBuy; | 1083 | public event LandBuy OnValidateLandBuy; |
599 | 1084 | ||
600 | public void TriggerOnAttach(uint localID, UUID itemID, UUID avatarID) | 1085 | public void TriggerOnAttach(uint localID, UUID itemID, UUID avatarID) |
@@ -2031,7 +2516,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
2031 | } | 2516 | } |
2032 | } | 2517 | } |
2033 | 2518 | ||
2034 | // this lets us keep track of nasty script events like timer, etc. | 2519 | /// <summary> |
2520 | /// this lets us keep track of nasty script events like timer, etc. | ||
2521 | /// </summary> | ||
2522 | /// <param name="objLocalID"></param> | ||
2523 | /// <param name="Interval"></param> | ||
2035 | public void TriggerTimerEvent(uint objLocalID, double Interval) | 2524 | public void TriggerTimerEvent(uint objLocalID, double Interval) |
2036 | { | 2525 | { |
2037 | throw new NotImplementedException("TriggerTimerEvent was thought to be not used anymore and the registration for the event from scene object part has been commented out due to a memory leak"); | 2526 | throw new NotImplementedException("TriggerTimerEvent was thought to be not used anymore and the registration for the event from scene object part has been commented out due to a memory leak"); |
@@ -2093,7 +2582,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2093 | return 6; | 2582 | return 6; |
2094 | } | 2583 | } |
2095 | 2584 | ||
2096 | public void TriggerOarFileLoaded(Guid requestId, string message) | 2585 | public void TriggerOarFileLoaded(Guid requestId, List<UUID> loadedScenes, string message) |
2097 | { | 2586 | { |
2098 | OarFileLoaded handlerOarFileLoaded = OnOarFileLoaded; | 2587 | OarFileLoaded handlerOarFileLoaded = OnOarFileLoaded; |
2099 | if (handlerOarFileLoaded != null) | 2588 | if (handlerOarFileLoaded != null) |
@@ -2102,7 +2591,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2102 | { | 2591 | { |
2103 | try | 2592 | try |
2104 | { | 2593 | { |
2105 | d(requestId, message); | 2594 | d(requestId, loadedScenes, message); |
2106 | } | 2595 | } |
2107 | catch (Exception e) | 2596 | catch (Exception e) |
2108 | { | 2597 | { |
@@ -2387,7 +2876,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2387 | } | 2876 | } |
2388 | } | 2877 | } |
2389 | 2878 | ||
2390 | public void TriggerSceneObjectPartUpdated(SceneObjectPart sop) | 2879 | public void TriggerSceneObjectPartUpdated(SceneObjectPart sop, bool full) |
2391 | { | 2880 | { |
2392 | SceneObjectPartUpdated handler = OnSceneObjectPartUpdated; | 2881 | SceneObjectPartUpdated handler = OnSceneObjectPartUpdated; |
2393 | if (handler != null) | 2882 | if (handler != null) |
@@ -2396,7 +2885,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2396 | { | 2885 | { |
2397 | try | 2886 | try |
2398 | { | 2887 | { |
2399 | d(sop); | 2888 | d(sop, full); |
2400 | } | 2889 | } |
2401 | catch (Exception e) | 2890 | catch (Exception e) |
2402 | { | 2891 | { |