From fcf7db72728174a628e62ae9d98a3c0090217728 Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Fri, 17 Aug 2007 21:24:38 +0000 Subject: Pimped up Default.lsl. Now featuring a touch counter. Changed "ObjectID" in ScriptEngine to IScriptHost reference. Events will now be queued based on IScriptHost reference instead of string ID of object. Removed "root" object reference in script. --- OpenSim/Region/Environment/Scenes/Scripting/NullScriptHost.cs | 1 + OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineInterface.cs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Scenes/Scripting') diff --git a/OpenSim/Region/Environment/Scenes/Scripting/NullScriptHost.cs b/OpenSim/Region/Environment/Scenes/Scripting/NullScriptHost.cs index 03587de..62c84a6 100644 --- a/OpenSim/Region/Environment/Scenes/Scripting/NullScriptHost.cs +++ b/OpenSim/Region/Environment/Scenes/Scripting/NullScriptHost.cs @@ -7,6 +7,7 @@ namespace OpenSim.Region.Environment.Scenes.Scripting { public class NullScriptHost : IScriptHost { + LLVector3 m_pos = new LLVector3( 128, 128, 30 ); public string Name { diff --git a/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineInterface.cs b/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineInterface.cs index 510f257..33021ee 100644 --- a/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineInterface.cs +++ b/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineInterface.cs @@ -29,6 +29,8 @@ using System; using System.Collections.Generic; using System.Text; +using OpenSim.Region.Environment.Scenes.Scripting; + //TODO: WHERE TO PLACE THIS? namespace OpenSim.Region.Environment.Scenes.Scripting { @@ -36,6 +38,6 @@ namespace OpenSim.Region.Environment.Scenes.Scripting { void InitializeEngine(OpenSim.Region.Environment.Scenes.Scene Sceneworld, OpenSim.Framework.Console.LogBase logger); void Shutdown(); - void StartScript(string ScriptID, string ObjectID); + void StartScript(string ScriptID, IScriptHost ObjectID); } } -- cgit v1.1