diff options
author | Adam Frisby | 2007-06-27 05:52:48 +0000 |
---|---|---|
committer | Adam Frisby | 2007-06-27 05:52:48 +0000 |
commit | f1c03604c90eb4537a8ec6539cf462bfa8266218 (patch) | |
tree | a4ce07ca4270f655e6a1a11f7a40f48b1b3c9420 /OpenSim/OpenSim.Region/Scenes/SceneEvents.cs | |
parent | * Removing scripting dir so visual studio doesnt throw a fit when I recreate it. (diff) | |
download | opensim-SC-f1c03604c90eb4537a8ec6539cf462bfa8266218.zip opensim-SC-f1c03604c90eb4537a8ec6539cf462bfa8266218.tar.gz opensim-SC-f1c03604c90eb4537a8ec6539cf462bfa8266218.tar.bz2 opensim-SC-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.
Diffstat (limited to 'OpenSim/OpenSim.Region/Scenes/SceneEvents.cs')
-rw-r--r-- | OpenSim/OpenSim.Region/Scenes/SceneEvents.cs | 29 |
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 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | namespace 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 | } | ||