diff options
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/Test')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/Test/TestModule.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Test/TestModule.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Test/TestModule.cs index e56d5eb..702ac74 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Test/TestModule.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Test/TestModule.cs | |||
@@ -33,7 +33,18 @@ namespace OpenSim | |||
33 | { | 33 | { |
34 | public override void Start() | 34 | public override void Start() |
35 | { | 35 | { |
36 | Host.Console.Info("Hello World!"); | 36 | // Say Hello |
37 | Host.Object.Say("Hello, Avatar!"); | ||
38 | |||
39 | // Register ourselves to listen | ||
40 | // for touch events. | ||
41 | Host.Object.OnTouch += OnTouched; | ||
42 | } | ||
43 | |||
44 | // This is our touch event handler | ||
45 | void OnTouched(IObject sender, TouchEventArgs e) | ||
46 | { | ||
47 | Host.Object.Say("Touched."); | ||
37 | } | 48 | } |
38 | 49 | ||
39 | public override void Stop() | 50 | public override void Stop() |