diff options
Diffstat (limited to 'OpenSim.RegionServer/OpenSimMain.cs')
-rw-r--r-- | OpenSim.RegionServer/OpenSimMain.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim.RegionServer/OpenSimMain.cs b/OpenSim.RegionServer/OpenSimMain.cs index 038c7e6..7f2032d 100644 --- a/OpenSim.RegionServer/OpenSimMain.cs +++ b/OpenSim.RegionServer/OpenSimMain.cs | |||
@@ -222,6 +222,26 @@ namespace OpenSim | |||
222 | 222 | ||
223 | return new XmlRpcResponse(); | 223 | return new XmlRpcResponse(); |
224 | }); | 224 | }); |
225 | |||
226 | httpServer.AddXmlRPCHandler("agent_crossing", | ||
227 | delegate(XmlRpcRequest request) | ||
228 | { | ||
229 | Hashtable requestData = (Hashtable)request.Params[0]; | ||
230 | AgentCircuitData agent_data = new AgentCircuitData(); | ||
231 | agent_data.firstname = (string)requestData["firstname"]; | ||
232 | agent_data.lastname = (string)requestData["lastname"]; | ||
233 | agent_data.circuitcode = Convert.ToUInt32(requestData["circuit_code"]); | ||
234 | agent_data.startpos = new LLVector3(Single.Parse((string)requestData["pos_x"]),Single.Parse((string)requestData["pos_y"]),Single.Parse((string)requestData["pos_z"])); | ||
235 | |||
236 | if(((RemoteGridBase)gridServer).agentcircuits.ContainsKey((uint)agent_data.circuitcode)) { | ||
237 | ((RemoteGridBase)gridServer).agentcircuits[(uint)agent_data.circuitcode].firstname = agent_data.firstname; | ||
238 | ((RemoteGridBase)gridServer).agentcircuits[(uint)agent_data.circuitcode].lastname = agent_data.lastname; | ||
239 | ((RemoteGridBase)gridServer).agentcircuits[(uint)agent_data.circuitcode].startpos = agent_data.startpos; | ||
240 | } | ||
241 | |||
242 | return new XmlRpcResponse(); | ||
243 | }); | ||
244 | |||
225 | httpServer.AddRestHandler("GET", "/simstatus/", | 245 | httpServer.AddRestHandler("GET", "/simstatus/", |
226 | delegate(string request, string path, string param) | 246 | delegate(string request, string path, string param) |
227 | { | 247 | { |