diff options
author | lbsa71 | 2007-08-06 13:01:47 +0000 |
---|---|---|
committer | lbsa71 | 2007-08-06 13:01:47 +0000 |
commit | 1b100e17a59480c6e66c2b8b5735003b0a1083c7 (patch) | |
tree | e0d91233e3679820bb94634c7b599c66905b58c6 /OpenSim/Region/Environment/Scenes/Scripting/Script.cs | |
parent | ... and here's the second part... (diff) | |
download | opensim-SC_OLD-1b100e17a59480c6e66c2b8b5735003b0a1083c7.zip opensim-SC_OLD-1b100e17a59480c6e66c2b8b5735003b0a1083c7.tar.gz opensim-SC_OLD-1b100e17a59480c6e66c2b8b5735003b0a1083c7.tar.bz2 opensim-SC_OLD-1b100e17a59480c6e66c2b8b5735003b0a1083c7.tar.xz |
* minor refactorings
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scripting/Script.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scripting/Script.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scripting/Script.cs b/OpenSim/Region/Environment/Scenes/Scripting/Script.cs index 40825c0..fa4bdde 100644 --- a/OpenSim/Region/Environment/Scenes/Scripting/Script.cs +++ b/OpenSim/Region/Environment/Scenes/Scripting/Script.cs | |||
@@ -32,23 +32,23 @@ namespace OpenSim.Region.Scripting | |||
32 | public interface IScript | 32 | public interface IScript |
33 | { | 33 | { |
34 | void Initialise(ScriptInfo scriptInfo); | 34 | void Initialise(ScriptInfo scriptInfo); |
35 | string getName(); | 35 | string Name { get; } |
36 | } | 36 | } |
37 | 37 | ||
38 | public class TestScript : IScript | 38 | public class TestScript : IScript |
39 | { | 39 | { |
40 | ScriptInfo script; | 40 | ScriptInfo script; |
41 | 41 | ||
42 | public string getName() | 42 | public string Name |
43 | { | 43 | { |
44 | return "TestScript 0.1"; | 44 | get { return "TestScript 0.1"; } |
45 | } | 45 | } |
46 | 46 | ||
47 | public void Initialise(ScriptInfo scriptInfo) | 47 | public void Initialise(ScriptInfo scriptInfo) |
48 | { | 48 | { |
49 | script = scriptInfo; | 49 | script = scriptInfo; |
50 | script.events.OnFrame += new EventManager.OnFrameDelegate(events_OnFrame); | 50 | script.events.OnFrame += events_OnFrame; |
51 | script.events.OnNewPresence += new EventManager.OnNewPresenceDelegate(events_OnNewPresence); | 51 | script.events.OnNewPresence += events_OnNewPresence; |
52 | } | 52 | } |
53 | 53 | ||
54 | void events_OnNewPresence(ScenePresence presence) | 54 | void events_OnNewPresence(ScenePresence presence) |