ok take the all change

0.9.1.0-post-fixes
UbitUmarov 2019-01-25 21:35:23 +00:00
parent 367bd48d91
commit f7926eb28c
2 changed files with 15 additions and 19 deletions

View File

@ -594,9 +594,22 @@ namespace OpenSim.Region.ClientStack.Linden
Enqueue(item, avatarID);
}
public OSD ScriptRunningEvent(UUID objectID, UUID itemID, bool running, UUID avatarID)
public void ScriptRunningEvent(UUID objectID, UUID itemID, bool running, UUID avatarID)
{
return EventQueueHelper.ScriptRunningReplyEvent(objectID, itemID, running);
StringBuilder sb = EventQueueHelper.StartEvent("ScriptRunningReply");
LLSDxmlEncode.AddArray("Script", sb);
LLSDxmlEncode.AddMap(sb);
LLSDxmlEncode.AddElem("ObjectID", objectID, sb);
LLSDxmlEncode.AddElem("ItemID", itemID, sb);
LLSDxmlEncode.AddElem("Running", running, sb);
LLSDxmlEncode.AddElem("Mono", true, sb);
LLSDxmlEncode.AddEndMap(sb);
LLSDxmlEncode.AddEndArray(sb);
OSDllsdxml item = new OSDllsdxml(EventQueueHelper.EndEvent(sb));
Enqueue(item, avatarID);
}
public OSD BuildEvent(string eventName, OSD eventBody)

View File

@ -187,23 +187,6 @@ namespace OpenSim.Region.ClientStack.Linden
return BuildEvent("TeleportFinish", body);
}
public static OSD ScriptRunningReplyEvent(UUID objectID, UUID itemID, bool running)
{
OSDMap script = new OSDMap();
script.Add("ObjectID", OSD.FromUUID(objectID));
script.Add("ItemID", OSD.FromUUID(itemID));
script.Add("Running", OSD.FromBoolean(running));
script.Add("Mono", OSD.FromBoolean(true));
OSDArray scriptArr = new OSDArray();
scriptArr.Add(script);
OSDMap body = new OSDMap();
body.Add("Script", scriptArr);
return BuildEvent("ScriptRunningReply", body);
}
public static OSD EstablishAgentCommunication(UUID agentID, string simIpAndPort, string seedcap,
ulong regionHandle, int regionSizeX, int regionSizeY)
{