aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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}