aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.Scripting/Script.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-06-27 09:30:07 +0000
committerAdam Frisby2007-06-27 09:30:07 +0000
commit1eec177d4b11e2793a5d77c20e9112a20138464a (patch)
tree5264bda6c1410fa561e54734a8cba1aa14fc9d08 /OpenSim/OpenSim.Scripting/Script.cs
parent* Added patch for SYSTEMIP handling when an IPv6 address is the primary addre... (diff)
downloadopensim-SC-1eec177d4b11e2793a5d77c20e9112a20138464a.zip
opensim-SC-1eec177d4b11e2793a5d77c20e9112a20138464a.tar.gz
opensim-SC-1eec177d4b11e2793a5d77c20e9112a20138464a.tar.bz2
opensim-SC-1eec177d4b11e2793a5d77c20e9112a20138464a.tar.xz
* Begun reimplementing scripting.
Diffstat (limited to 'OpenSim/OpenSim.Scripting/Script.cs')
-rw-r--r--OpenSim/OpenSim.Scripting/Script.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/OpenSim/OpenSim.Scripting/Script.cs b/OpenSim/OpenSim.Scripting/Script.cs
new file mode 100644
index 0000000..0f4af00
--- /dev/null
+++ b/OpenSim/OpenSim.Scripting/Script.cs
@@ -0,0 +1,32 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5using OpenSim.Framework.Console;
6using OpenSim.Framework;
7using OpenSim.Region;
8using OpenSim.Region.Scenes;
9
10namespace OpenSim.Scripting
11{
12 public interface IScript
13 {
14 void Initialise(ScriptInfo scriptInfo);
15 }
16
17 public class TestScript : IScript
18 {
19 ScriptInfo script;
20
21 public void Initialise(ScriptInfo scriptInfo)
22 {
23 script = scriptInfo;
24 script.events.OnFrame += new OpenSim.Region.Scenes.EventManager.OnFrameDelegate(events_OnFrame);
25 }
26
27 void events_OnFrame()
28 {
29 script.logger.Verbose("Hello World!");
30 }
31 }
32}