From ae9e38bf3fdc27144e0f3fa377c60506526e4c13 Mon Sep 17 00:00:00 2001 From: Homer Horwitz Date: Thu, 16 Oct 2008 21:46:03 +0000 Subject: Fixed (mono-)script handling for SL viewer 1.21: - Added two missing caps (UpdateScriptAgent, UpdateScriptTask) - Added one missing EventQueue event (ScriptRunningReply) - Changed DNE and XEngine to use this new event As we only use the mono engine anyway, the "Mono" checkbox is set by default but doesn't have any function. --- .../Environment/Modules/Framework/EventQueueHelper.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'OpenSim/Region/Environment/Modules/Framework/EventQueueHelper.cs') diff --git a/OpenSim/Region/Environment/Modules/Framework/EventQueueHelper.cs b/OpenSim/Region/Environment/Modules/Framework/EventQueueHelper.cs index 93ee4f8..1e7eb59 100644 --- a/OpenSim/Region/Environment/Modules/Framework/EventQueueHelper.cs +++ b/OpenSim/Region/Environment/Modules/Framework/EventQueueHelper.cs @@ -146,6 +146,23 @@ namespace OpenSim.Region.Environment return buildEvent("TeleportFinish", body); } + public static LLSD ScriptRunningReplyEvent(UUID objectID, UUID itemID, bool running, bool mono) + { + LLSDMap script = new LLSDMap(); + script.Add("ObjectID", LLSD.FromUUID(objectID)); + script.Add("ItemID", LLSD.FromUUID(itemID)); + script.Add("Running", LLSD.FromBoolean(running)); + script.Add("Mono", LLSD.FromBoolean(mono)); + + LLSDArray scriptArr = new LLSDArray(); + scriptArr.Add(script); + + LLSDMap body = new LLSDMap(); + body.Add("Script", scriptArr); + + return buildEvent("ScriptRunningReply", body); + } + public static LLSD KeepAliveEvent() { return buildEvent("FAKEEVENT", new LLSDMap()); -- cgit v1.1