diff options
Diffstat (limited to 'OpenSim/OpenSim.Region/Scenes/scripting/Script.cs')
-rw-r--r-- | OpenSim/OpenSim.Region/Scenes/scripting/Script.cs | 44 |
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 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | using OpenSim.Framework.Console; | ||
6 | using OpenSim.Framework; | ||
7 | using OpenSim.Region; | ||
8 | using OpenSim.Region.Scenes; | ||
9 | |||
10 | namespace 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 | } | ||