From 695d807696709920eb12c2d4bd8af07af922566d Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 26 Jan 2019 16:42:42 +0000 Subject: change encoding of a few event caps messages --- .../Linden/Caps/EventQueue/EventQueueGetModule.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'OpenSim/Region/ClientStack/Linden/Caps/EventQueue') diff --git a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs index 4da4412..58860b0 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs @@ -499,6 +499,23 @@ namespace OpenSim.Region.ClientStack.Linden Enqueue(item, avatarID); } */ + public StringBuilder StartEvent(string eventName) + { + StringBuilder sb = new StringBuilder(256); + LLSDxmlEncode.AddMap(sb); + LLSDxmlEncode.AddElem("message", eventName, sb); + LLSDxmlEncode.AddMap("body", sb); + + return sb; + } + + public string EndEvent(StringBuilder sb) + { + LLSDxmlEncode.AddEndMap(sb); // close body + LLSDxmlEncode.AddEndMap(sb); // close event + return sb.ToString(); + } + public virtual void EnableSimulator(ulong handle, IPEndPoint endPoint, UUID avatarID, int regionSizeX, int regionSizeY) { if (DebugLevel > 0) -- cgit v1.1