aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.Region/Scenes/scripting/Script.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-06-28 08:35:41 +0000
committerAdam Frisby2007-06-28 08:35:41 +0000
commit17275f3ab7db6bbcea54c1e88eb05664189af0a6 (patch)
tree99fcea504aa969d39b83d44ba00d7b24b20e0719 /OpenSim/OpenSim.Region/Scenes/scripting/Script.cs
parent* Removing stuff piecemeal since Tortoise SVN blows. (diff)
downloadopensim-SC-17275f3ab7db6bbcea54c1e88eb05664189af0a6.zip
opensim-SC-17275f3ab7db6bbcea54c1e88eb05664189af0a6.tar.gz
opensim-SC-17275f3ab7db6bbcea54c1e88eb05664189af0a6.tar.bz2
opensim-SC-17275f3ab7db6bbcea54c1e88eb05664189af0a6.tar.xz
* More removing stuff. Tortoise SVN I hate you.
Diffstat (limited to 'OpenSim/OpenSim.Region/Scenes/scripting/Script.cs')
-rw-r--r--OpenSim/OpenSim.Region/Scenes/scripting/Script.cs44
1 files changed, 0 insertions, 44 deletions
diff --git a/OpenSim/OpenSim.Region/Scenes/scripting/Script.cs b/OpenSim/OpenSim.Region/Scenes/scripting/Script.cs
deleted file mode 100644
index 57390bc..0000000
--- a/OpenSim/OpenSim.Region/Scenes/scripting/Script.cs
+++ /dev/null
@@ -1,44 +0,0 @@
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 string getName();
16 }
17
18 public class TestScript : IScript
19 {
20 ScriptInfo script;
21
22 public string getName()
23 {
24 return "TestScript 0.1";
25 }
26
27 public void Initialise(ScriptInfo scriptInfo)
28 {
29 script = scriptInfo;
30 script.events.OnFrame += new OpenSim.Region.Scenes.EventManager.OnFrameDelegate(events_OnFrame);
31 script.events.OnNewPresence += new EventManager.OnNewPresenceDelegate(events_OnNewPresence);
32 }
33
34 void events_OnNewPresence(ScenePresence presence)
35 {
36 script.logger.Verbose("Hello " + presence.firstname.ToString() + "!");
37 }
38
39 void events_OnFrame()
40 {
41 //script.logger.Verbose("Hello World!");
42 }
43 }
44}