diff options
author | gareth | 2007-04-17 10:53:50 +0000 |
---|---|---|
committer | gareth | 2007-04-17 10:53:50 +0000 |
commit | 3e86870f7f1eb3d90089d41f8669fbd22d2e50d4 (patch) | |
tree | 5e04e36b7725227e95618933a2850898504a12fc /OpenSim.RegionServer/OpenSimMain.cs | |
parent | Sim crossing now works (except for broken co-ordinates, resets to 0,0 - to be... (diff) | |
download | opensim-SC-3e86870f7f1eb3d90089d41f8669fbd22d2e50d4.zip opensim-SC-3e86870f7f1eb3d90089d41f8669fbd22d2e50d4.tar.gz opensim-SC-3e86870f7f1eb3d90089d41f8669fbd22d2e50d4.tar.bz2 opensim-SC-3e86870f7f1eb3d90089d41f8669fbd22d2e50d4.tar.xz |
Created skeleton SimComms.cs for sim<->sim UDP circuits
Fixed bug with <0,0> co-ordinates on sim crossing
Diffstat (limited to '')
-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 | { |