aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/EventManager.cs
diff options
context:
space:
mode:
authorDr Scofield2009-01-28 09:22:12 +0000
committerDr Scofield2009-01-28 09:22:12 +0000
commita3ac702941bbae92ca5a3ed452eb3d417bf30f0b (patch)
tree3a827866b274b86447cc7b2237a7182d95270879 /OpenSim/Region/Environment/Scenes/EventManager.cs
parentAdd in a stub for llSHA1String. I believe it is the only one new (diff)
downloadopensim-SC_OLD-a3ac702941bbae92ca5a3ed452eb3d417bf30f0b.zip
opensim-SC_OLD-a3ac702941bbae92ca5a3ed452eb3d417bf30f0b.tar.gz
opensim-SC_OLD-a3ac702941bbae92ca5a3ed452eb3d417bf30f0b.tar.bz2
opensim-SC_OLD-a3ac702941bbae92ca5a3ed452eb3d417bf30f0b.tar.xz
From: Christopher Yeoh <yeohc@au1.ibm.com>
Adding Oarfileloaded and EmptyScriptCompileQueue event support which allows (with a module) for programmatic notification of when a region objects and scripts are up and running after a server start or load-oar.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/EventManager.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/EventManager.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/EventManager.cs b/OpenSim/Region/Environment/Scenes/EventManager.cs
index b493f84..1543bf0 100644
--- a/OpenSim/Region/Environment/Scenes/EventManager.cs
+++ b/OpenSim/Region/Environment/Scenes/EventManager.cs
@@ -266,6 +266,21 @@ namespace OpenSim.Region.Environment.Scenes
266 public delegate float SunLindenHour(); 266 public delegate float SunLindenHour();
267 public event SunLindenHour OnGetSunLindenHour; 267 public event SunLindenHour OnGetSunLindenHour;
268 268
269 /// <summary>
270 /// Called when oar file has finished loading, although
271 /// the scripts may not have started yet
272 /// Message is non empty string if there were problems loading the oar file
273 /// </summary>
274 public delegate void OarFileLoaded(string message);
275 public event OarFileLoaded OnOarFileLoaded;
276
277 /// <summary>
278 /// Called when the script compile queue becomes empty
279 /// Returns the number of scripts which failed to start
280 /// </summary>
281 public delegate void EmptyScriptCompileQueue(int numScriptsFailed, string message);
282 public event EmptyScriptCompileQueue OnEmptyScriptCompileQueue;
283
269 public class MoneyTransferArgs : EventArgs 284 public class MoneyTransferArgs : EventArgs
270 { 285 {
271 public UUID sender; 286 public UUID sender;
@@ -399,6 +414,8 @@ namespace OpenSim.Region.Environment.Scenes
399 private SunLindenHour handlerSunGetLindenHour = null; 414 private SunLindenHour handlerSunGetLindenHour = null;
400 private OnSetRootAgentSceneDelegate handlerSetRootAgentScene = null; 415 private OnSetRootAgentSceneDelegate handlerSetRootAgentScene = null;
401 416
417 private OarFileLoaded handlerOarFileLoaded = null;
418 private EmptyScriptCompileQueue handlerEmptyScriptCompileQueue = null;
402 419
403 public void TriggerGetScriptRunning(IClientAPI controllingClient, UUID objectID, UUID itemID) 420 public void TriggerGetScriptRunning(IClientAPI controllingClient, UUID objectID, UUID itemID)
404 { 421 {
@@ -902,6 +919,20 @@ namespace OpenSim.Region.Environment.Scenes
902 return 6; 919 return 6;
903 } 920 }
904 921
922 public void TriggerOarFileLoaded(string message)
923 {
924 handlerOarFileLoaded = OnOarFileLoaded;
925 if (handlerOarFileLoaded != null)
926 handlerOarFileLoaded(message);
927 }
928
929 public void TriggerEmptyScriptCompileQueue(int numScriptsFailed, string message)
930 {
931 handlerEmptyScriptCompileQueue = OnEmptyScriptCompileQueue;
932 if (handlerEmptyScriptCompileQueue != null)
933 handlerEmptyScriptCompileQueue(numScriptsFailed, message);
934 }
935
905 public void TriggerScriptCollidingStart(uint localId, ColliderArgs colliders) 936 public void TriggerScriptCollidingStart(uint localId, ColliderArgs colliders)
906 { 937 {
907 handlerCollidingStart = OnScriptColliderStart; 938 handlerCollidingStart = OnScriptColliderStart;