ScriptEngine just needs 2 events hooked up and llSay() implemented to work. See TODO.txt for details.
parent
e36c645729
commit
6829c45cb3
|
@ -46,7 +46,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||||
|
|
||||||
// Hook up a test event to our test form
|
// Hook up a test event to our test form
|
||||||
Common.SendToDebug("EventManager Hooking up dummy-event: touch_start");
|
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)
|
public void touch_start(string ObjectID)
|
||||||
|
|
|
@ -38,7 +38,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||||
// This is the root object for ScriptEngine
|
// 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 EventManager myEventManager; // Handles and queues incoming events from OpenSim
|
||||||
internal EventQueueManager myEventQueueManager; // Executes events
|
internal EventQueueManager myEventQueueManager; // Executes events
|
||||||
internal ScriptManager myScriptManager; // Load, unload and execute scripts
|
internal ScriptManager myScriptManager; // Load, unload and execute scripts
|
||||||
|
@ -48,7 +48,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||||
Common.SendToDebug("ScriptEngine Object Initialized");
|
Common.SendToDebug("ScriptEngine Object Initialized");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void InitializeEngine(TempWorldInterface Sceneworld)
|
public void InitializeEngine(OpenSim.Region.Environment.Scenes.Scene Sceneworld)
|
||||||
{
|
{
|
||||||
World = Sceneworld;
|
World = Sceneworld;
|
||||||
Common.SendToDebug("ScriptEngine InitializeEngine()");
|
Common.SendToDebug("ScriptEngine InitializeEngine()");
|
||||||
|
|
|
@ -34,7 +34,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||||
{
|
{
|
||||||
interface ScriptEngineInterface
|
interface ScriptEngineInterface
|
||||||
{
|
{
|
||||||
void InitializeEngine(TempWorldInterface Sceneworld);
|
void InitializeEngine(OpenSim.Region.Environment.Scenes.Scene Sceneworld);
|
||||||
void Shutdown();
|
void Shutdown();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -947,6 +947,7 @@
|
||||||
<Reference name="System" localCopy="false"/>
|
<Reference name="System" localCopy="false"/>
|
||||||
<Reference name="System.Data" localCopy="false"/>
|
<Reference name="System.Data" localCopy="false"/>
|
||||||
<Reference name="System.Xml" localCopy="false"/>
|
<Reference name="System.Xml" localCopy="false"/>
|
||||||
|
<Reference name="OpenSim.Region.Environment" />
|
||||||
<Reference name="OpenSim.Framework"/>
|
<Reference name="OpenSim.Framework"/>
|
||||||
<Reference name="OpenSim.Framework.Console"/>
|
<Reference name="OpenSim.Framework.Console"/>
|
||||||
<Reference name="OpenSim.Framework.Data"/>
|
<Reference name="OpenSim.Framework.Data"/>
|
||||||
|
|
Loading…
Reference in New Issue