mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 03:15:41 +08:00
ScriptEngine just needs 2 events hooked up and llSay() implemented to work. See TODO.txt for details.
This commit is contained in:
@@ -46,7 +46,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
|
||||
// Hook up a test event to our test form
|
||||
Common.SendToDebug("EventManager Hooking up dummy-event: touch_start");
|
||||
myScriptEngine.World.touch_start += new TempWorldInterfaceEventDelegates.touch_start(touch_start);
|
||||
//myScriptEngine.World.touch_start += new TempWorldInterfaceEventDelegates.touch_start(touch_start);
|
||||
}
|
||||
|
||||
public void touch_start(string ObjectID)
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
// This is the root object for ScriptEngine
|
||||
//
|
||||
|
||||
internal TempWorldInterface World;
|
||||
internal OpenSim.Region.Environment.Scenes.Scene World;
|
||||
internal EventManager myEventManager; // Handles and queues incoming events from OpenSim
|
||||
internal EventQueueManager myEventQueueManager; // Executes events
|
||||
internal ScriptManager myScriptManager; // Load, unload and execute scripts
|
||||
@@ -48,7 +48,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
Common.SendToDebug("ScriptEngine Object Initialized");
|
||||
}
|
||||
|
||||
public void InitializeEngine(TempWorldInterface Sceneworld)
|
||||
public void InitializeEngine(OpenSim.Region.Environment.Scenes.Scene Sceneworld)
|
||||
{
|
||||
World = Sceneworld;
|
||||
Common.SendToDebug("ScriptEngine InitializeEngine()");
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
{
|
||||
interface ScriptEngineInterface
|
||||
{
|
||||
void InitializeEngine(TempWorldInterface Sceneworld);
|
||||
void InitializeEngine(OpenSim.Region.Environment.Scenes.Scene Sceneworld);
|
||||
void Shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
21
OpenSim/Region/ScriptEngine/DotNetEngine/TODO.txt
Normal file
21
OpenSim/Region/ScriptEngine/DotNetEngine/TODO.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
|
||||
|
||||
EventManager.cs
|
||||
---------------
|
||||
* Hook up to the worlds touch-event:
|
||||
myScriptEngine.World.touch_start += new TempWorldInterfaceEventDelegates.touch_start(touch_start);
|
||||
|
||||
* Modify:
|
||||
public void touch_start(string ObjectID)
|
||||
to correct parameters to match the event
|
||||
|
||||
* Make hooks to add/remove script using ScriptManager.cs
|
||||
|
||||
|
||||
|
||||
LSL_BuiltIn_Commands_TestImplementation.cs
|
||||
------------------------------------------
|
||||
* Change llSay to do something useful (send message)
|
||||
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
{
|
||||
public class TempWorldInterfaceEventDelegates
|
||||
{
|
||||
public delegate void touch_start(string ObjectID);
|
||||
}
|
||||
public interface TempWorldInterface
|
||||
{
|
||||
event TempWorldInterfaceEventDelegates.touch_start touch_start;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user