diff options
author | Tedd Hansen | 2007-08-13 20:55:07 +0000 |
---|---|---|
committer | Tedd Hansen | 2007-08-13 20:55:07 +0000 |
commit | 79dc1a4f7d4196d14bd51cb0839b9dd8c644cab7 (patch) | |
tree | e07b695666f9fe6e90a674706ebdc9509dd33065 /OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs | |
parent | committed a test version of OpenSimAssetSet.xml in last commit, so fixing that. (diff) | |
download | opensim-SC_OLD-79dc1a4f7d4196d14bd51cb0839b9dd8c644cab7.zip opensim-SC_OLD-79dc1a4f7d4196d14bd51cb0839b9dd8c644cab7.tar.gz opensim-SC_OLD-79dc1a4f7d4196d14bd51cb0839b9dd8c644cab7.tar.bz2 opensim-SC_OLD-79dc1a4f7d4196d14bd51cb0839b9dd8c644cab7.tar.xz |
Common script for all objects (Default.lsl). ScriptEngine touch_start event now works, but llSay only outputs to server console.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs index a69e27c..7ad00d1 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs | |||
@@ -29,6 +29,8 @@ | |||
29 | using System; | 29 | using System; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Text; | 31 | using System.Text; |
32 | using libsecondlife; | ||
33 | using OpenSim.Framework.Interfaces; | ||
32 | 34 | ||
33 | namespace OpenSim.Region.ScriptEngine.DotNetEngine | 35 | namespace OpenSim.Region.ScriptEngine.DotNetEngine |
34 | { | 36 | { |
@@ -49,14 +51,15 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
49 | // Hook up a test event to our test form | 51 | // Hook up a test event to our test form |
50 | Common.SendToDebug("EventManager Hooking up dummy-event: touch_start"); | 52 | Common.SendToDebug("EventManager Hooking up dummy-event: touch_start"); |
51 | // TODO: REPLACE THIS WITH A REAL TOUCH_START EVENT IN SERVER | 53 | // TODO: REPLACE THIS WITH A REAL TOUCH_START EVENT IN SERVER |
54 | myScriptEngine.World.EventManager.OnObjectGrab += new OpenSim.Region.Environment.Scenes.EventManager.ObjectGrabDelegate(touch_start); | ||
52 | //myScriptEngine.World.touch_start += new TempWorldInterfaceEventDelegates.touch_start(touch_start); | 55 | //myScriptEngine.World.touch_start += new TempWorldInterfaceEventDelegates.touch_start(touch_start); |
53 | } | 56 | } |
54 | 57 | ||
55 | public void touch_start(string ObjectID) | 58 | public void touch_start(uint localID, LLVector3 offsetPos, IClientAPI remoteClient) |
56 | { | 59 | { |
57 | // Add to queue for all scripts in ObjectID object | 60 | // Add to queue for all scripts in ObjectID object |
58 | Common.SendToDebug("EventManager Event: touch_start"); | 61 | Common.SendToDebug("EventManager Event: touch_start"); |
59 | myScriptEngine.myEventQueueManager.AddToObjectQueue(ObjectID, "touch_start", new object[] { (UInt32)0 }); | 62 | myScriptEngine.myEventQueueManager.AddToObjectQueue("TEST", "touch_start", new object[] { (int)0 }); |
60 | } | 63 | } |
61 | 64 | ||
62 | 65 | ||