aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAdam Frisby2007-06-27 05:52:48 +0000
committerAdam Frisby2007-06-27 05:52:48 +0000
commitf1c03604c90eb4537a8ec6539cf462bfa8266218 (patch)
treea4ce07ca4270f655e6a1a11f7a40f48b1b3c9420
parent* Removing scripting dir so visual studio doesnt throw a fit when I recreate it. (diff)
downloadopensim-SC_OLD-f1c03604c90eb4537a8ec6539cf462bfa8266218.zip
opensim-SC_OLD-f1c03604c90eb4537a8ec6539cf462bfa8266218.tar.gz
opensim-SC_OLD-f1c03604c90eb4537a8ec6539cf462bfa8266218.tar.bz2
opensim-SC_OLD-f1c03604c90eb4537a8ec6539cf462bfa8266218.tar.xz
* Commiting new "SceneEvents" class - a single class which contains bindable events for common things, which can later be passed to the scripting engine.
Events being things like OnFrame / OnNewViewer, etc.
-rw-r--r--OpenSim/OpenSim.Region/Scenes/SceneEvents.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/OpenSim/OpenSim.Region/Scenes/SceneEvents.cs b/OpenSim/OpenSim.Region/Scenes/SceneEvents.cs
new file mode 100644
index 0000000..2b3348a
--- /dev/null
+++ b/OpenSim/OpenSim.Region/Scenes/SceneEvents.cs
@@ -0,0 +1,29 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace OpenSim.Region.Scenes
6{
7 /// <summary>
8 /// A class for triggering remote scene events.
9 /// </summary>
10 class SceneEvents
11 {
12 public delegate void OnFrameDelegate();
13 public event OnFrameDelegate OnFrame;
14
15 public delegate void OnNewViewerDelegate();
16 public event OnNewViewerDelegate OnNewViewer;
17
18 public delegate void OnNewPrimitiveDelegate();
19 public event OnNewPrimitiveDelegate OnNewPrimitive;
20
21 public void TriggerOnFrame()
22 {
23 if (OnFrame != null)
24 {
25 OnFrame();
26 }
27 }
28 }
29}