diff options
author | Sean Dague | 2007-07-16 15:40:11 +0000 |
---|---|---|
committer | Sean Dague | 2007-07-16 15:40:11 +0000 |
commit | 2a3c79df83e800d5dfe75a1a3b140ed81da2b1d6 (patch) | |
tree | e3f80ad51736cf17e856547b1bcf956010927434 /OpenSim/Region/Scripting/Script.cs | |
parent | *Trunk compiles now (diff) | |
download | opensim-SC-2a3c79df83e800d5dfe75a1a3b140ed81da2b1d6.zip opensim-SC-2a3c79df83e800d5dfe75a1a3b140ed81da2b1d6.tar.gz opensim-SC-2a3c79df83e800d5dfe75a1a3b140ed81da2b1d6.tar.bz2 opensim-SC-2a3c79df83e800d5dfe75a1a3b140ed81da2b1d6.tar.xz |
changed to native line ending encoding
Diffstat (limited to 'OpenSim/Region/Scripting/Script.cs')
-rw-r--r-- | OpenSim/Region/Scripting/Script.cs | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/OpenSim/Region/Scripting/Script.cs b/OpenSim/Region/Scripting/Script.cs index 0f4af00..0551ea0 100644 --- a/OpenSim/Region/Scripting/Script.cs +++ b/OpenSim/Region/Scripting/Script.cs | |||
@@ -1,32 +1,32 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Text; | 3 | using System.Text; |
4 | 4 | ||
5 | using OpenSim.Framework.Console; | 5 | using OpenSim.Framework.Console; |
6 | using OpenSim.Framework; | 6 | using OpenSim.Framework; |
7 | using OpenSim.Region; | 7 | using OpenSim.Region; |
8 | using OpenSim.Region.Scenes; | 8 | using OpenSim.Region.Scenes; |
9 | 9 | ||
10 | namespace OpenSim.Scripting | 10 | namespace OpenSim.Scripting |
11 | { | 11 | { |
12 | public interface IScript | 12 | public interface IScript |
13 | { | 13 | { |
14 | void Initialise(ScriptInfo scriptInfo); | 14 | void Initialise(ScriptInfo scriptInfo); |
15 | } | 15 | } |
16 | 16 | ||
17 | public class TestScript : IScript | 17 | public class TestScript : IScript |
18 | { | 18 | { |
19 | ScriptInfo script; | 19 | ScriptInfo script; |
20 | 20 | ||
21 | public void Initialise(ScriptInfo scriptInfo) | 21 | public void Initialise(ScriptInfo scriptInfo) |
22 | { | 22 | { |
23 | script = scriptInfo; | 23 | script = scriptInfo; |
24 | script.events.OnFrame += new OpenSim.Region.Scenes.EventManager.OnFrameDelegate(events_OnFrame); | 24 | script.events.OnFrame += new OpenSim.Region.Scenes.EventManager.OnFrameDelegate(events_OnFrame); |
25 | } | 25 | } |
26 | 26 | ||
27 | void events_OnFrame() | 27 | void events_OnFrame() |
28 | { | 28 | { |
29 | script.logger.Verbose("Hello World!"); | 29 | script.logger.Verbose("Hello World!"); |
30 | } | 30 | } |
31 | } | 31 | } |
32 | } | 32 | } |