aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs7
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 @@
29using System; 29using System;
30using System.Collections.Generic; 30using System.Collections.Generic;
31using System.Text; 31using System.Text;
32using libsecondlife;
33using OpenSim.Framework.Interfaces;
32 34
33namespace OpenSim.Region.ScriptEngine.DotNetEngine 35namespace 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