aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneEvents.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-07-15 22:04:56 +0000
committerAdam Frisby2007-07-15 22:04:56 +0000
commitf2c449f10e7c6b7dc3468ecdaea9e97039e1e0a9 (patch)
tree75400e1a09fc051352db022667d0718fa372b34e /OpenSim/Region/Environment/Scenes/SceneEvents.cs
parent*Fixed master avatar requesting when in grid mode. (diff)
downloadopensim-SC-f2c449f10e7c6b7dc3468ecdaea9e97039e1e0a9.zip
opensim-SC-f2c449f10e7c6b7dc3468ecdaea9e97039e1e0a9.tar.gz
opensim-SC-f2c449f10e7c6b7dc3468ecdaea9e97039e1e0a9.tar.bz2
opensim-SC-f2c449f10e7c6b7dc3468ecdaea9e97039e1e0a9.tar.xz
* Added new scripting related events, in particular a new event which is triggered by console commands so that the script can subscribe to console messages and operate when they occur.
* Added new example script (work in progress) * Fixed typo in Scripting engines for C# and JScript.NET
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneEvents.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneEvents.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs
index f8ebb2f..1e4b163 100644
--- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs
@@ -25,6 +25,15 @@ namespace OpenSim.Region.Environment.Scenes
25 public delegate void OnParcelPrimCountAddDelegate(SceneObject obj); 25 public delegate void OnParcelPrimCountAddDelegate(SceneObject obj);
26 public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd; 26 public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd;
27 27
28 public delegate void OnScriptConsoleDelegate(string[] args);
29 public event OnScriptConsoleDelegate OnScriptConsole;
30
31 public void TriggerOnScriptConsole(string[] args)
32 {
33 if (OnScriptConsole != null)
34 OnScriptConsole(args);
35 }
36
28 public void TriggerOnFrame() 37 public void TriggerOnFrame()
29 { 38 {
30 if (OnFrame != null) 39 if (OnFrame != null)