diff options
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 | ||