diff options
author | teravus | 2012-11-15 10:05:16 -0500 |
---|---|---|
committer | teravus | 2012-11-15 10:05:16 -0500 |
commit | e9153e1d1aae50024d8cd05fe14a9bce34343a0e (patch) | |
tree | bc111d34f95a26b99c7e34d9e495dc14d1802cc3 /OpenSim/Region/Framework/Scenes/EventManager.cs | |
parent | Merge master into teravuswork (diff) | |
download | opensim-SC-e9153e1d1aae50024d8cd05fe14a9bce34343a0e.zip opensim-SC-e9153e1d1aae50024d8cd05fe14a9bce34343a0e.tar.gz opensim-SC-e9153e1d1aae50024d8cd05fe14a9bce34343a0e.tar.bz2 opensim-SC-e9153e1d1aae50024d8cd05fe14a9bce34343a0e.tar.xz |
Revert "Merge master into teravuswork", it should have been avination, not master.
This reverts commit dfac269032300872c4d0dc507f4f9062d102b0f4, reversing
changes made to 619c39e5144f15aca129d6d999bcc5c34133ee64.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/EventManager.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/EventManager.cs | 521 |
1 files changed, 16 insertions, 505 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs index 5b1c9f4..4a19c3b 100644 --- a/OpenSim/Region/Framework/Scenes/EventManager.cs +++ b/OpenSim/Region/Framework/Scenes/EventManager.cs | |||
@@ -47,75 +47,30 @@ 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> | ||
58 | public event OnFrameDelegate OnFrame; | 50 | public event OnFrameDelegate OnFrame; |
59 | 51 | ||
60 | public delegate void ClientMovement(ScenePresence client); | 52 | public delegate void ClientMovement(ScenePresence client); |
61 | 53 | ||
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> | ||
69 | public event ClientMovement OnClientMovement; | 54 | public event ClientMovement OnClientMovement; |
70 | 55 | ||
71 | public delegate void OnTerrainTaintedDelegate(); | 56 | public delegate void OnTerrainTaintedDelegate(); |
72 | 57 | ||
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> | ||
80 | public event OnTerrainTaintedDelegate OnTerrainTainted; | 58 | public event OnTerrainTaintedDelegate OnTerrainTainted; |
81 | 59 | ||
82 | public delegate void OnTerrainTickDelegate(); | 60 | public delegate void OnTerrainTickDelegate(); |
83 | 61 | ||
84 | /// <summary> | ||
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> | ||
91 | public event OnTerrainTickDelegate OnTerrainTick; | ||
92 | |||
93 | public delegate void OnTerrainUpdateDelegate(); | 62 | public delegate void OnTerrainUpdateDelegate(); |
94 | 63 | ||
64 | public event OnTerrainTickDelegate OnTerrainTick; | ||
65 | |||
95 | public event OnTerrainUpdateDelegate OnTerrainUpdate; | 66 | public event OnTerrainUpdateDelegate OnTerrainUpdate; |
96 | 67 | ||
97 | public delegate void OnBackupDelegate(ISimulationDataService datastore, bool forceBackup); | 68 | public delegate void OnBackupDelegate(ISimulationDataService datastore, bool forceBackup); |
98 | 69 | ||
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> | ||
106 | public event OnBackupDelegate OnBackup; | 70 | public event OnBackupDelegate OnBackup; |
107 | 71 | ||
108 | public delegate void OnClientConnectCoreDelegate(IClientCore client); | 72 | public delegate void OnClientConnectCoreDelegate(IClientCore client); |
109 | 73 | ||
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> | ||
119 | public event OnClientConnectCoreDelegate OnClientConnect; | 74 | public event OnClientConnectCoreDelegate OnClientConnect; |
120 | 75 | ||
121 | public delegate void OnNewClientDelegate(IClientAPI client); | 76 | public delegate void OnNewClientDelegate(IClientAPI client); |
@@ -125,96 +80,33 @@ namespace OpenSim.Region.Framework.Scenes | |||
125 | /// </summary> | 80 | /// </summary> |
126 | /// <remarks> | 81 | /// <remarks> |
127 | /// This is triggered for both child and root agent client connections. | 82 | /// This is triggered for both child and root agent client connections. |
128 | /// | ||
129 | /// Triggered before OnClientLogin. | 83 | /// 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. | ||
133 | /// </remarks> | 84 | /// </remarks> |
134 | public event OnNewClientDelegate OnNewClient; | 85 | public event OnNewClientDelegate OnNewClient; |
135 | 86 | ||
136 | /// <summary> | 87 | /// <summary> |
137 | /// Fired if the client entering this sim is doing so as a new login | 88 | /// Fired if the client entering this sim is doing so as a new login |
138 | /// </summary> | 89 | /// </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> | ||
143 | public event Action<IClientAPI> OnClientLogin; | 90 | public event Action<IClientAPI> OnClientLogin; |
144 | 91 | ||
145 | public delegate void OnNewPresenceDelegate(ScenePresence presence); | 92 | public delegate void OnNewPresenceDelegate(ScenePresence presence); |
146 | 93 | ||
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> | ||
154 | public event OnNewPresenceDelegate OnNewPresence; | 94 | public event OnNewPresenceDelegate OnNewPresence; |
155 | 95 | ||
156 | public delegate void OnRemovePresenceDelegate(UUID agentId); | 96 | public delegate void OnRemovePresenceDelegate(UUID agentId); |
157 | 97 | ||
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> | ||
168 | public event OnRemovePresenceDelegate OnRemovePresence; | 98 | public event OnRemovePresenceDelegate OnRemovePresence; |
169 | 99 | ||
170 | public delegate void OnParcelPrimCountUpdateDelegate(); | 100 | public delegate void OnParcelPrimCountUpdateDelegate(); |
171 | 101 | ||
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> | ||
186 | public event OnParcelPrimCountUpdateDelegate OnParcelPrimCountUpdate; | 102 | public event OnParcelPrimCountUpdateDelegate OnParcelPrimCountUpdate; |
187 | 103 | ||
188 | public delegate void OnParcelPrimCountAddDelegate(SceneObjectGroup obj); | 104 | public delegate void OnParcelPrimCountAddDelegate(SceneObjectGroup obj); |
189 | 105 | ||
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> | ||
198 | public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd; | 106 | public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd; |
199 | 107 | ||
200 | public delegate void OnPluginConsoleDelegate(string[] args); | 108 | public delegate void OnPluginConsoleDelegate(string[] args); |
201 | 109 | ||
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> | ||
218 | public event OnPluginConsoleDelegate OnPluginConsole; | 110 | public event OnPluginConsoleDelegate OnPluginConsole; |
219 | 111 | ||
220 | /// <summary> | 112 | /// <summary> |
@@ -229,28 +121,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
229 | 121 | ||
230 | public delegate void OnSetRootAgentSceneDelegate(UUID agentID, Scene scene); | 122 | public delegate void OnSetRootAgentSceneDelegate(UUID agentID, Scene scene); |
231 | 123 | ||
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> | ||
244 | public event OnSetRootAgentSceneDelegate OnSetRootAgentScene; | 124 | public event OnSetRootAgentSceneDelegate OnSetRootAgentScene; |
245 | 125 | ||
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> | ||
254 | public event ParcelPropertiesUpdateRequest OnParcelPropertiesUpdateRequest; | 126 | public event ParcelPropertiesUpdateRequest OnParcelPropertiesUpdateRequest; |
255 | 127 | ||
256 | /// <summary> | 128 | /// <summary> |
@@ -265,45 +137,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
265 | /// <summary> | 137 | /// <summary> |
266 | /// Fired when an object is touched/grabbed. | 138 | /// Fired when an object is touched/grabbed. |
267 | /// </summary> | 139 | /// </summary> |
268 | /// <remarks> | ||
269 | /// The originalID is the local ID of the part that was actually touched. The localID itself is always that of | 140 | /// The originalID is the local ID of the part that was actually touched. The localID itself is always that of |
270 | /// the root part. | 141 | /// 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> | ||
275 | public event ObjectGrabDelegate OnObjectGrab; | 142 | public event ObjectGrabDelegate OnObjectGrab; |
276 | public delegate void ObjectGrabDelegate(uint localID, uint originalID, Vector3 offsetPos, IClientAPI remoteClient, SurfaceTouchEventArgs surfaceArgs); | 143 | public delegate void ObjectGrabDelegate(uint localID, uint originalID, Vector3 offsetPos, IClientAPI remoteClient, SurfaceTouchEventArgs surfaceArgs); |
277 | 144 | ||
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> | ||
286 | public event ObjectGrabDelegate OnObjectGrabbing; | 145 | 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> | ||
296 | public event ObjectDeGrabDelegate OnObjectDeGrab; | 146 | 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> | ||
307 | public event ScriptResetDelegate OnScriptReset; | 147 | public event ScriptResetDelegate OnScriptReset; |
308 | 148 | ||
309 | public event OnPermissionErrorDelegate OnPermissionError; | 149 | public event OnPermissionErrorDelegate OnPermissionError; |
@@ -313,105 +153,29 @@ namespace OpenSim.Region.Framework.Scenes | |||
313 | /// </summary> | 153 | /// </summary> |
314 | /// <remarks> | 154 | /// <remarks> |
315 | /// Occurs after OnNewScript. | 155 | /// Occurs after OnNewScript. |
316 | /// Triggered by <see cref="TriggerRezScript"/> | ||
317 | /// in <see cref="SceneObjectPartInventory.CreateScriptInstance"/> | ||
318 | /// </remarks> | 156 | /// </remarks> |
319 | public event NewRezScript OnRezScript; | 157 | public event NewRezScript OnRezScript; |
320 | public delegate void NewRezScript(uint localID, UUID itemID, string script, int startParam, bool postOnRez, string engine, int stateSource); | 158 | public delegate void NewRezScript(uint localID, UUID itemID, string script, int startParam, bool postOnRez, string engine, int stateSource); |
321 | 159 | ||
322 | public delegate void RemoveScript(uint localID, UUID itemID); | 160 | 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> | ||
334 | public event RemoveScript OnRemoveScript; | 161 | public event RemoveScript OnRemoveScript; |
335 | 162 | ||
336 | public delegate void StartScript(uint localID, UUID itemID); | 163 | 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> | ||
347 | public event StartScript OnStartScript; | 164 | public event StartScript OnStartScript; |
348 | 165 | ||
349 | public delegate void StopScript(uint localID, UUID itemID); | 166 | 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> | ||
360 | public event StopScript OnStopScript; | 167 | public event StopScript OnStopScript; |
361 | 168 | ||
362 | public delegate bool SceneGroupMoved(UUID groupID, Vector3 delta); | 169 | 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> | ||
372 | public event SceneGroupMoved OnSceneGroupMove; | 170 | public event SceneGroupMoved OnSceneGroupMove; |
373 | 171 | ||
374 | public delegate void SceneGroupGrabed(UUID groupID, Vector3 offset, UUID userID); | 172 | 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> | ||
387 | public event SceneGroupGrabed OnSceneGroupGrab; | 173 | public event SceneGroupGrabed OnSceneGroupGrab; |
388 | 174 | ||
389 | public delegate bool SceneGroupSpinStarted(UUID groupID); | 175 | 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> | ||
401 | public event SceneGroupSpinStarted OnSceneGroupSpinStart; | 176 | public event SceneGroupSpinStarted OnSceneGroupSpinStart; |
402 | 177 | ||
403 | public delegate bool SceneGroupSpun(UUID groupID, Quaternion rotation); | 178 | 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> | ||
415 | public event SceneGroupSpun OnSceneGroupSpin; | 179 | public event SceneGroupSpun OnSceneGroupSpin; |
416 | 180 | ||
417 | public delegate void LandObjectAdded(ILandObject newParcel); | 181 | public delegate void LandObjectAdded(ILandObject newParcel); |
@@ -440,9 +204,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
440 | /// </summary> | 204 | /// </summary> |
441 | /// <remarks> | 205 | /// <remarks> |
442 | /// At the point of firing, the scene still contains the client's scene presence. | 206 | /// 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. | ||
446 | /// </remarks> | 207 | /// </remarks> |
447 | public event ClientClosed OnClientClosed; | 208 | public event ClientClosed OnClientClosed; |
448 | 209 | ||
@@ -453,9 +214,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
453 | /// </summary> | 214 | /// </summary> |
454 | /// <remarks> | 215 | /// <remarks> |
455 | /// Occurs before OnRezScript | 216 | /// Occurs before OnRezScript |
456 | /// Triggered by <see cref="TriggerNewScript"/> | ||
457 | /// in <see cref="Scene.RezScriptFromAgentInventory"/>, | ||
458 | /// <see cref="Scene.RezNewScript"/> | ||
459 | /// </remarks> | 217 | /// </remarks> |
460 | public event NewScript OnNewScript; | 218 | public event NewScript OnNewScript; |
461 | 219 | ||
@@ -490,12 +248,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
490 | /// </summary> | 248 | /// </summary> |
491 | /// <remarks> | 249 | /// <remarks> |
492 | /// Triggered after the scene receives a client's upload of an updated script and has stored it in an asset. | 250 | /// 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"/> | ||
499 | /// </remarks> | 251 | /// </remarks> |
500 | public event UpdateScript OnUpdateScript; | 252 | public event UpdateScript OnUpdateScript; |
501 | 253 | ||
@@ -521,203 +273,48 @@ namespace OpenSim.Region.Framework.Scenes | |||
521 | } | 273 | } |
522 | 274 | ||
523 | /// <summary> | 275 | /// <summary> |
524 | /// Triggered when some scene object properties change. | ||
525 | /// </summary> | ||
526 | /// <remarks> | ||
527 | /// ScriptChangedEvent is fired when a scene object property that a script might be interested | 276 | /// ScriptChangedEvent is fired when a scene object property that a script might be interested |
528 | /// in (such as color, scale or inventory) changes. Only enough information sent is for the LSL changed event. | 277 | /// in (such as color, scale or inventory) changes. Only enough information sent is for the LSL changed event. |
529 | /// This is not an indication that the script has changed (see OnUpdateScript for that). | 278 | /// This is not an indication that the script has changed (see OnUpdateScript for that). |
530 | /// This event is sent to a script to tell it that some property changed on | 279 | /// This event is sent to a script to tell it that some property changed on |
531 | /// the object the script is in. See http://lslwiki.net/lslwiki/wakka.php?wakka=changed . | 280 | /// the object the script is in. See http://lslwiki.net/lslwiki/wakka.php?wakka=changed . |
532 | /// Triggered by <see cref="TriggerOnScriptChangedEvent"/> | 281 | /// </summary> |
533 | /// in <see cref="OpenSim.Region.CoreModules.Framework.EntityTransfer.EntityTransferModule.TeleportAgentWithinRegion"/>, | ||
534 | /// <see cref="SceneObjectPart.TriggerScriptChangedEvent"/> | ||
535 | /// </remarks> | ||
536 | public event ScriptChangedEvent OnScriptChangedEvent; | 282 | public event ScriptChangedEvent OnScriptChangedEvent; |
537 | public delegate void ScriptChangedEvent(uint localID, uint change); | 283 | public delegate void ScriptChangedEvent(uint localID, uint change); |
538 | 284 | ||
539 | public delegate void ScriptControlEvent(UUID item, UUID avatarID, uint held, uint changed); | 285 | 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> | ||
551 | public event ScriptControlEvent OnScriptControlEvent; | 286 | public event ScriptControlEvent OnScriptControlEvent; |
552 | 287 | ||
553 | public delegate void ScriptAtTargetEvent(uint localID, uint handle, Vector3 targetpos, Vector3 atpos); | 288 | 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> | ||
565 | public event ScriptAtTargetEvent OnScriptAtTargetEvent; | 289 | public event ScriptAtTargetEvent OnScriptAtTargetEvent; |
566 | 290 | ||
567 | public delegate void ScriptNotAtTargetEvent(uint localID); | 291 | 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> | ||
579 | public event ScriptNotAtTargetEvent OnScriptNotAtTargetEvent; | 292 | public event ScriptNotAtTargetEvent OnScriptNotAtTargetEvent; |
580 | 293 | ||
581 | public delegate void ScriptAtRotTargetEvent(uint localID, uint handle, Quaternion targetrot, Quaternion atrot); | 294 | 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> | ||
593 | public event ScriptAtRotTargetEvent OnScriptAtRotTargetEvent; | 295 | public event ScriptAtRotTargetEvent OnScriptAtRotTargetEvent; |
594 | 296 | ||
595 | public delegate void ScriptNotAtRotTargetEvent(uint localID); | 297 | 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> | ||
607 | public event ScriptNotAtRotTargetEvent OnScriptNotAtRotTargetEvent; | 298 | public event ScriptNotAtRotTargetEvent OnScriptNotAtRotTargetEvent; |
608 | 299 | ||
609 | public delegate void ScriptColliding(uint localID, ColliderArgs colliders); | 300 | 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> | ||
622 | public event ScriptColliding OnScriptColliderStart; | 301 | 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> | ||
636 | public event ScriptColliding OnScriptColliding; | 302 | 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> | ||
649 | public event ScriptColliding OnScriptCollidingEnd; | 303 | 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> | ||
662 | public event ScriptColliding OnScriptLandColliderStart; | 304 | 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> | ||
675 | public event ScriptColliding OnScriptLandColliding; | 305 | 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> | ||
688 | public event ScriptColliding OnScriptLandColliderEnd; | 306 | public event ScriptColliding OnScriptLandColliderEnd; |
689 | 307 | ||
690 | public delegate void OnMakeChildAgentDelegate(ScenePresence presence); | 308 | 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> | ||
702 | public event OnMakeChildAgentDelegate OnMakeChildAgent; | 309 | public event OnMakeChildAgentDelegate OnMakeChildAgent; |
703 | 310 | ||
704 | public delegate void OnSaveNewWindlightProfileDelegate(); | 311 | public delegate void OnSaveNewWindlightProfileDelegate(); |
705 | public delegate void OnSendNewWindlightProfileTargetedDelegate(RegionLightShareData wl, UUID user); | 312 | public delegate void OnSendNewWindlightProfileTargetedDelegate(RegionLightShareData wl, UUID user); |
706 | 313 | ||
707 | /// <summary> | 314 | /// <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> | ||
713 | /// This event is on the critical path for transferring an avatar from one region to another. Try and do | 315 | /// This event is on the critical path for transferring an avatar from one region to another. Try and do |
714 | /// as little work on this event as possible, or do work asynchronously. | 316 | /// as little work on this event as possible, or do work asynchronously. |
715 | /// Triggered after <see cref="OnSetRootAgentScene"/> | 317 | /// </summary> |
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> | ||
721 | public event Action<ScenePresence> OnMakeRootAgent; | 318 | public event Action<ScenePresence> OnMakeRootAgent; |
722 | 319 | ||
723 | public event OnSendNewWindlightProfileTargetedDelegate OnSendNewWindlightProfileTargeted; | 320 | public event OnSendNewWindlightProfileTargetedDelegate OnSendNewWindlightProfileTargeted; |
@@ -743,17 +340,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
743 | public event AvatarKillData OnAvatarKilled; | 340 | public event AvatarKillData OnAvatarKilled; |
744 | public delegate void AvatarKillData(uint KillerLocalID, ScenePresence avatar); | 341 | public delegate void AvatarKillData(uint KillerLocalID, ScenePresence avatar); |
745 | 342 | ||
746 | /* | 343 | // public delegate void ScriptTimerEvent(uint localID, double timerinterval); |
747 | public delegate void ScriptTimerEvent(uint localID, double timerinterval); | 344 | |
748 | /// <summary> | 345 | // public event ScriptTimerEvent OnScriptTimerEvent; |
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 | */ | ||
757 | 346 | ||
758 | public delegate void EstateToolsSunUpdate(ulong regionHandle, bool FixedTime, bool EstateSun, float LindenHour); | 347 | public delegate void EstateToolsSunUpdate(ulong regionHandle, bool FixedTime, bool EstateSun, float LindenHour); |
759 | public delegate void GetScriptRunning(IClientAPI controllingClient, UUID objectID, UUID itemID); | 348 | public delegate void GetScriptRunning(IClientAPI controllingClient, UUID objectID, UUID itemID); |
@@ -763,27 +352,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
763 | /// <summary> | 352 | /// <summary> |
764 | /// Triggered when an object is added to the scene. | 353 | /// Triggered when an object is added to the scene. |
765 | /// </summary> | 354 | /// </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> | ||
772 | public event Action<SceneObjectGroup> OnObjectAddedToScene; | 355 | public event Action<SceneObjectGroup> OnObjectAddedToScene; |
773 | 356 | ||
774 | /// <summary> | 357 | /// <summary> |
775 | /// Delegate for <see cref="OnObjectBeingRemovedFromScene"/> | ||
776 | /// </summary> | ||
777 | /// <param name="obj">The object being removed from the scene</param> | ||
778 | public delegate void ObjectBeingRemovedFromScene(SceneObjectGroup obj); | ||
779 | |||
780 | /// <summary> | ||
781 | /// Triggered when an object is removed from the scene. | 358 | /// Triggered when an object is removed from the scene. |
782 | /// </summary> | 359 | /// </summary> |
783 | /// <remarks> | 360 | public delegate void ObjectBeingRemovedFromScene(SceneObjectGroup obj); |
784 | /// Triggered by <see cref="TriggerObjectBeingRemovedFromScene"/> | ||
785 | /// in <see cref="Scene.DeleteSceneObject"/> | ||
786 | /// </remarks> | ||
787 | public event ObjectBeingRemovedFromScene OnObjectBeingRemovedFromScene; | 361 | public event ObjectBeingRemovedFromScene OnObjectBeingRemovedFromScene; |
788 | 362 | ||
789 | public delegate void NoticeNoLandDataFromStorage(); | 363 | public delegate void NoticeNoLandDataFromStorage(); |
@@ -799,20 +373,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
799 | public event RequestParcelPrimCountUpdate OnRequestParcelPrimCountUpdate; | 373 | public event RequestParcelPrimCountUpdate OnRequestParcelPrimCountUpdate; |
800 | 374 | ||
801 | public delegate void ParcelPrimCountTainted(); | 375 | 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> | ||
816 | public event ParcelPrimCountTainted OnParcelPrimCountTainted; | 376 | public event ParcelPrimCountTainted OnParcelPrimCountTainted; |
817 | public event GetScriptRunning OnGetScriptRunning; | 377 | public event GetScriptRunning OnGetScriptRunning; |
818 | 378 | ||
@@ -876,7 +436,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
876 | /// the scripts may not have started yet | 436 | /// the scripts may not have started yet |
877 | /// Message is non empty string if there were problems loading the oar file | 437 | /// Message is non empty string if there were problems loading the oar file |
878 | /// </summary> | 438 | /// </summary> |
879 | public delegate void OarFileLoaded(Guid guid, List<UUID> loadedScenes, string message); | 439 | public delegate void OarFileLoaded(Guid guid, string message); |
880 | public event OarFileLoaded OnOarFileLoaded; | 440 | public event OarFileLoaded OnOarFileLoaded; |
881 | 441 | ||
882 | /// <summary> | 442 | /// <summary> |
@@ -929,13 +489,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
929 | /// <param name="copy"></param> | 489 | /// <param name="copy"></param> |
930 | /// <param name="original"></param> | 490 | /// <param name="original"></param> |
931 | /// <param name="userExposed">True if the duplicate will immediately be in the scene, false otherwise</param> | 491 | /// <param name="userExposed">True if the duplicate will immediately be in the scene, false otherwise</param> |
932 | /// <remarks> | ||
933 | /// Triggered in <see cref="OpenSim.Region.Framework.Scenes.SceneObjectPart.Copy"/> | ||
934 | /// </remarks> | ||
935 | public event SceneObjectPartCopyDelegate OnSceneObjectPartCopy; | 492 | public event SceneObjectPartCopyDelegate OnSceneObjectPartCopy; |
936 | public delegate void SceneObjectPartCopyDelegate(SceneObjectPart copy, SceneObjectPart original, bool userExposed); | 493 | public delegate void SceneObjectPartCopyDelegate(SceneObjectPart copy, SceneObjectPart original, bool userExposed); |
937 | 494 | ||
938 | public delegate void SceneObjectPartUpdated(SceneObjectPart sop, bool full); | 495 | public delegate void SceneObjectPartUpdated(SceneObjectPart sop); |
939 | public event SceneObjectPartUpdated OnSceneObjectPartUpdated; | 496 | public event SceneObjectPartUpdated OnSceneObjectPartUpdated; |
940 | 497 | ||
941 | public delegate void ScenePresenceUpdated(ScenePresence sp); | 498 | public delegate void ScenePresenceUpdated(ScenePresence sp); |
@@ -973,28 +530,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
973 | public event PrimsLoaded OnPrimsLoaded; | 530 | public event PrimsLoaded OnPrimsLoaded; |
974 | 531 | ||
975 | public delegate void TeleportStart(IClientAPI client, GridRegion destination, GridRegion finalDestination, uint teleportFlags, bool gridLogout); | 532 | public delegate void TeleportStart(IClientAPI client, GridRegion destination, GridRegion finalDestination, uint teleportFlags, bool gridLogout); |
976 | |||
977 | /// <summary> | ||
978 | /// Triggered when a teleport starts | ||
979 | /// </summary> | ||
980 | /// <remarks> | ||
981 | /// Triggered by <see cref="TriggerTeleportStart"/> | ||
982 | /// in <see cref="OpenSim.Region.CoreModules.Framework.EntityTransfer.EntityTransferModule.CreateAgent"/> | ||
983 | /// and <see cref="OpenSim.Region.CoreModules.Framework.EntityTransfer.HGEntityTransferModule.CreateAgent"/> | ||
984 | /// via <see cref="OpenSim.Region.CoreModules.Framework.EntityTransfer.EntityTransferModule.DoTeleport"/> | ||
985 | /// </remarks> | ||
986 | public event TeleportStart OnTeleportStart; | 533 | public event TeleportStart OnTeleportStart; |
987 | 534 | ||
988 | public delegate void TeleportFail(IClientAPI client, bool gridLogout); | 535 | public delegate void TeleportFail(IClientAPI client, bool gridLogout); |
989 | |||
990 | /// <summary> | ||
991 | /// Trigered when a teleport fails. | ||
992 | /// </summary> | ||
993 | /// <remarks> | ||
994 | /// Triggered by <see cref="TriggerTeleportFail"/> | ||
995 | /// in <see cref="OpenSim.Region.CoreModules.Framework.EntityTransfer.EntityTransferModule.Fail"/> | ||
996 | /// via <see cref="OpenSim.Region.CoreModules.Framework.EntityTransfer.EntityTransferModule.DoTeleport"/> | ||
997 | /// </remarks> | ||
998 | public event TeleportFail OnTeleportFail; | 536 | public event TeleportFail OnTeleportFail; |
999 | 537 | ||
1000 | public class MoneyTransferArgs : EventArgs | 538 | public class MoneyTransferArgs : EventArgs |
@@ -1002,9 +540,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1002 | public UUID sender; | 540 | public UUID sender; |
1003 | public UUID receiver; | 541 | public UUID receiver; |
1004 | 542 | ||
1005 | /// <summary> | 543 | // Always false. The SL protocol sucks. |
1006 | /// Always false. The SL protocol sucks. | ||
1007 | /// </summary> | ||
1008 | public bool authenticated = false; | 544 | public bool authenticated = false; |
1009 | 545 | ||
1010 | public int amount; | 546 | public int amount; |
@@ -1061,29 +597,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
1061 | 597 | ||
1062 | public delegate void LandBuy(Object sender, LandBuyArgs e); | 598 | public delegate void LandBuy(Object sender, LandBuyArgs e); |
1063 | 599 | ||
1064 | /// <summary> | ||
1065 | /// Triggered when an attempt to transfer grid currency occurs | ||
1066 | /// </summary> | ||
1067 | /// <remarks> | ||
1068 | /// Triggered in <see cref="OpenSim.Region.Framework.Scenes.Scene.ProcessMoneyTransferRequest"/> | ||
1069 | /// via <see cref="OpenSim.Region.Framework.Scenes.Scene.SubscribeToClientGridEvents"/> | ||
1070 | /// via <see cref="OpenSim.Region.Framework.Scenes.Scene.SubscribeToClientEvents"/> | ||
1071 | /// via <see cref="OpenSim.Region.Framework.Scenes.Scene.AddNewClient"/> | ||
1072 | /// </remarks> | ||
1073 | public event MoneyTransferEvent OnMoneyTransfer; | 600 | public event MoneyTransferEvent OnMoneyTransfer; |
1074 | |||
1075 | /// <summary> | ||
1076 | /// Triggered after after <see cref="OnValidateLandBuy"/> | ||
1077 | /// </summary> | ||
1078 | public event LandBuy OnLandBuy; | 601 | public event LandBuy OnLandBuy; |
1079 | |||
1080 | /// <summary> | ||
1081 | /// Triggered to allow or prevent a real estate transaction | ||
1082 | /// </summary> | ||
1083 | /// <remarks> | ||
1084 | /// Triggered in <see cref="OpenSim.Region.Framework.Scenes.Scene.ProcessParcelBuy"/> | ||
1085 | /// <seealso cref="OpenSim.Region.OptionalModules.World.MoneyModule.SampleMoneyModule.ValidateLandBuy"/> | ||
1086 | /// </remarks> | ||
1087 | public event LandBuy OnValidateLandBuy; | 602 | public event LandBuy OnValidateLandBuy; |
1088 | 603 | ||
1089 | public void TriggerOnAttach(uint localID, UUID itemID, UUID avatarID) | 604 | public void TriggerOnAttach(uint localID, UUID itemID, UUID avatarID) |
@@ -2520,11 +2035,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2520 | } | 2035 | } |
2521 | } | 2036 | } |
2522 | 2037 | ||
2523 | /// <summary> | 2038 | // this lets us keep track of nasty script events like timer, etc. |
2524 | /// this lets us keep track of nasty script events like timer, etc. | ||
2525 | /// </summary> | ||
2526 | /// <param name="objLocalID"></param> | ||
2527 | /// <param name="Interval"></param> | ||
2528 | public void TriggerTimerEvent(uint objLocalID, double Interval) | 2039 | public void TriggerTimerEvent(uint objLocalID, double Interval) |
2529 | { | 2040 | { |
2530 | 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"); | 2041 | 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"); |
@@ -2586,7 +2097,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2586 | return 6; | 2097 | return 6; |
2587 | } | 2098 | } |
2588 | 2099 | ||
2589 | public void TriggerOarFileLoaded(Guid requestId, List<UUID> loadedScenes, string message) | 2100 | public void TriggerOarFileLoaded(Guid requestId, string message) |
2590 | { | 2101 | { |
2591 | OarFileLoaded handlerOarFileLoaded = OnOarFileLoaded; | 2102 | OarFileLoaded handlerOarFileLoaded = OnOarFileLoaded; |
2592 | if (handlerOarFileLoaded != null) | 2103 | if (handlerOarFileLoaded != null) |
@@ -2595,7 +2106,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2595 | { | 2106 | { |
2596 | try | 2107 | try |
2597 | { | 2108 | { |
2598 | d(requestId, loadedScenes, message); | 2109 | d(requestId, message); |
2599 | } | 2110 | } |
2600 | catch (Exception e) | 2111 | catch (Exception e) |
2601 | { | 2112 | { |
@@ -2880,7 +2391,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2880 | } | 2391 | } |
2881 | } | 2392 | } |
2882 | 2393 | ||
2883 | public void TriggerSceneObjectPartUpdated(SceneObjectPart sop, bool full) | 2394 | public void TriggerSceneObjectPartUpdated(SceneObjectPart sop) |
2884 | { | 2395 | { |
2885 | SceneObjectPartUpdated handler = OnSceneObjectPartUpdated; | 2396 | SceneObjectPartUpdated handler = OnSceneObjectPartUpdated; |
2886 | if (handler != null) | 2397 | if (handler != null) |
@@ -2889,7 +2400,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2889 | { | 2400 | { |
2890 | try | 2401 | try |
2891 | { | 2402 | { |
2892 | d(sop, full); | 2403 | d(sop); |
2893 | } | 2404 | } |
2894 | catch (Exception e) | 2405 | catch (Exception e) |
2895 | { | 2406 | { |