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.
This commit is contained in:
Homer Horwitz
2008-10-16 21:46:03 +00:00
parent 4bbc28e445
commit ae9e38bf3f
4 changed files with 42 additions and 4 deletions

View File

@@ -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());