diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Framework/EventQueueHelper.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Framework/EventQueueHelper.cs | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/OpenSim/Region/Environment/Modules/Framework/EventQueueHelper.cs b/OpenSim/Region/Environment/Modules/Framework/EventQueueHelper.cs index 4833f27..0ffa8aa 100644 --- a/OpenSim/Region/Environment/Modules/Framework/EventQueueHelper.cs +++ b/OpenSim/Region/Environment/Modules/Framework/EventQueueHelper.cs | |||
@@ -80,15 +80,15 @@ namespace OpenSim.Region.Environment | |||
80 | 80 | ||
81 | public static OSD DisableSimulator(ulong Handle) | 81 | public static OSD DisableSimulator(ulong Handle) |
82 | { | 82 | { |
83 | OSDMap llsdSimInfo = new OSDMap(1); | 83 | //OSDMap llsdSimInfo = new OSDMap(1); |
84 | 84 | ||
85 | llsdSimInfo.Add("Handle", new OSDBinary(regionHandleToByteArray(Handle))); | 85 | //llsdSimInfo.Add("Handle", new OSDBinary(regionHandleToByteArray(Handle))); |
86 | 86 | ||
87 | OSDArray arr = new OSDArray(1); | 87 | //OSDArray arr = new OSDArray(1); |
88 | arr.Add(llsdSimInfo); | 88 | //arr.Add(llsdSimInfo); |
89 | 89 | ||
90 | OSDMap llsdBody = new OSDMap(1); | 90 | OSDMap llsdBody = new OSDMap(0); |
91 | llsdBody.Add("SimulatorInfo", arr); | 91 | //llsdBody.Add("SimulatorInfo", arr); |
92 | 92 | ||
93 | return buildEvent("DisableSimulator", llsdBody); | 93 | return buildEvent("DisableSimulator", llsdBody); |
94 | } | 94 | } |
@@ -178,6 +178,16 @@ namespace OpenSim.Region.Environment | |||
178 | return buildEvent("ScriptRunningReply", body); | 178 | return buildEvent("ScriptRunningReply", body); |
179 | } | 179 | } |
180 | 180 | ||
181 | public static OSD EstablishAgentCommunication(UUID agentID, string simIpAndPort, string seedcap) | ||
182 | { | ||
183 | OSDMap body = new OSDMap(3); | ||
184 | body.Add("agent-id", new OSDUUID(agentID)); | ||
185 | body.Add("sim-ip-and-port", new OSDString(simIpAndPort)); | ||
186 | body.Add("seed-capability", new OSDString(seedcap)); | ||
187 | |||
188 | return buildEvent("EstablishAgentCommunication", body); | ||
189 | } | ||
190 | |||
181 | public static OSD KeepAliveEvent() | 191 | public static OSD KeepAliveEvent() |
182 | { | 192 | { |
183 | return buildEvent("FAKEEVENT", new OSDMap()); | 193 | return buildEvent("FAKEEVENT", new OSDMap()); |