From ae970d4171084d539ce995c428320baa9c59cd8c Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Thu, 9 Aug 2007 20:59:35 +0000 Subject: Removed 2 warnings. Added pointer comments to where to add hooks and modify functions to get SE working. --- OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs | 8 ++++---- .../LSL/Server_API/LSL_BuiltIn_Commands_TestImplementation.cs | 1 + OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs | 3 +++ OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngineInterface.cs | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs index e95d1bb..6df5b9f 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs @@ -36,10 +36,10 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine { static public bool Debug = true; - public delegate void SendToDebugEventDelegate(string Message); - public delegate void SendToLogEventDelegate(string Message); - static public event SendToDebugEventDelegate SendToDebugEvent; - static public event SendToLogEventDelegate SendToLogEvent; + //public delegate void SendToDebugEventDelegate(string Message); + //public delegate void SendToLogEventDelegate(string Message); + //static public event SendToDebugEventDelegate SendToDebugEvent; + //static public event SendToLogEventDelegate SendToLogEvent; static public void SendToDebug(string Message) { diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Server_API/LSL_BuiltIn_Commands_TestImplementation.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Server_API/LSL_BuiltIn_Commands_TestImplementation.cs index bbdafad..3536bf3 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Server_API/LSL_BuiltIn_Commands_TestImplementation.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Server_API/LSL_BuiltIn_Commands_TestImplementation.cs @@ -70,6 +70,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL //public void llSay(UInt32 channelID, string text) public void llSay(object channelID, object text) { + //TODO: DO SOMETHING USEFUL HERE Common.SendToDebug("INTERNAL FUNCTION llSay(" + (UInt32)channelID + ", \"" + (string)text + "\");"); Common.SendToLog("llSay Channel " + (UInt32)channelID + ", Text: \"" + (string)text + "\""); } diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs index 5a1b2b6..a69e27c 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs @@ -44,8 +44,11 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine // TODO: HOOK EVENTS UP TO SERVER! Common.SendToDebug("EventManager Start"); + // TODO: ADD SERVER HOOK TO LOAD A SCRIPT THROUGH myScriptEngine.ScriptManager + // Hook up a test event to our test form Common.SendToDebug("EventManager Hooking up dummy-event: touch_start"); + // TODO: REPLACE THIS WITH A REAL TOUCH_START EVENT IN SERVER //myScriptEngine.World.touch_start += new TempWorldInterfaceEventDelegates.touch_start(touch_start); } diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngineInterface.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngineInterface.cs index 321fd91..bc735c9 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngineInterface.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngineInterface.cs @@ -29,7 +29,7 @@ using System; using System.Collections.Generic; using System.Text; - +//TODO: WHERE TO PLACE THIS? namespace OpenSim.Region.ScriptEngine.DotNetEngine { interface ScriptEngineInterface -- cgit v1.1