aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer/OpenSimMain.cs
diff options
context:
space:
mode:
authorgareth2007-04-17 10:53:50 +0000
committergareth2007-04-17 10:53:50 +0000
commit3e86870f7f1eb3d90089d41f8669fbd22d2e50d4 (patch)
tree5e04e36b7725227e95618933a2850898504a12fc /OpenSim.RegionServer/OpenSimMain.cs
parentSim crossing now works (except for broken co-ordinates, resets to 0,0 - to be... (diff)
downloadopensim-SC_OLD-3e86870f7f1eb3d90089d41f8669fbd22d2e50d4.zip
opensim-SC_OLD-3e86870f7f1eb3d90089d41f8669fbd22d2e50d4.tar.gz
opensim-SC_OLD-3e86870f7f1eb3d90089d41f8669fbd22d2e50d4.tar.bz2
opensim-SC_OLD-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 'OpenSim.RegionServer/OpenSimMain.cs')
-rw-r--r--OpenSim.RegionServer/OpenSimMain.cs20
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 {