diff options
Diffstat (limited to 'OpenGridServices/OpenGridServices.UserServer/UserManager.cs')
-rw-r--r-- | OpenGridServices/OpenGridServices.UserServer/UserManager.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenGridServices/OpenGridServices.UserServer/UserManager.cs b/OpenGridServices/OpenGridServices.UserServer/UserManager.cs index 6f5f054..14e330b 100644 --- a/OpenGridServices/OpenGridServices.UserServer/UserManager.cs +++ b/OpenGridServices/OpenGridServices.UserServer/UserManager.cs | |||
@@ -55,7 +55,7 @@ namespace OpenGridServices.UserServer | |||
55 | /// </summary> | 55 | /// </summary> |
56 | /// <param name="response">The existing response</param> | 56 | /// <param name="response">The existing response</param> |
57 | /// <param name="theUser">The user profile</param> | 57 | /// <param name="theUser">The user profile</param> |
58 | public override void CustomiseResponse(ref Hashtable response, ref UserProfileData theUser) | 58 | public override void CustomiseResponse(ref LoginResponse response, ref UserProfileData theUser) |
59 | { | 59 | { |
60 | // Load information from the gridserver | 60 | // Load information from the gridserver |
61 | SimProfile SimInfo = new SimProfile(); | 61 | SimProfile SimInfo = new SimProfile(); |
@@ -63,15 +63,15 @@ namespace OpenGridServices.UserServer | |||
63 | 63 | ||
64 | // Customise the response | 64 | // Customise the response |
65 | // Home Location | 65 | // Home Location |
66 | response["home"] = "{'region_handle':[r" + (SimInfo.RegionLocX * 256).ToString() + ",r" + (SimInfo.RegionLocY * 256).ToString() + "], " + | 66 | response.Home = "{'region_handle':[r" + (SimInfo.RegionLocX * 256).ToString() + ",r" + (SimInfo.RegionLocY * 256).ToString() + "], " + |
67 | "'position':[r" + theUser.homeLocation.X.ToString() + ",r" + theUser.homeLocation.Y.ToString() + ",r" + theUser.homeLocation.Z.ToString() + "], " + | 67 | "'position':[r" + theUser.homeLocation.X.ToString() + ",r" + theUser.homeLocation.Y.ToString() + ",r" + theUser.homeLocation.Z.ToString() + "], " + |
68 | "'look_at':[r" + theUser.homeLocation.X.ToString() + ",r" + theUser.homeLocation.Y.ToString() + ",r" + theUser.homeLocation.Z.ToString() + "]}"; | 68 | "'look_at':[r" + theUser.homeLocation.X.ToString() + ",r" + theUser.homeLocation.Y.ToString() + ",r" + theUser.homeLocation.Z.ToString() + "]}"; |
69 | 69 | ||
70 | // Destination | 70 | // Destination |
71 | response["sim_ip"] = SimInfo.sim_ip; | 71 | response.SimAddress = SimInfo.sim_ip; |
72 | response["sim_port"] = (Int32)SimInfo.sim_port; | 72 | response.SimPort = (Int32)SimInfo.sim_port; |
73 | response["region_y"] = (Int32)SimInfo.RegionLocY * 256; | 73 | response.RegionX = SimInfo.RegionLocY ; |
74 | response["region_x"] = (Int32)SimInfo.RegionLocX * 256; | 74 | response.RegionY = SimInfo.RegionLocX ; |
75 | 75 | ||
76 | // Notify the target of an incoming user | 76 | // Notify the target of an incoming user |
77 | Console.WriteLine("Notifying " + SimInfo.regionname + " (" + SimInfo.caps_url + ")"); | 77 | Console.WriteLine("Notifying " + SimInfo.regionname + " (" + SimInfo.caps_url + ")"); |
@@ -83,7 +83,7 @@ namespace OpenGridServices.UserServer | |||
83 | SimParams["firstname"] = theUser.username; | 83 | SimParams["firstname"] = theUser.username; |
84 | SimParams["lastname"] = theUser.surname; | 84 | SimParams["lastname"] = theUser.surname; |
85 | SimParams["agent_id"] = theUser.UUID.ToString(); | 85 | SimParams["agent_id"] = theUser.UUID.ToString(); |
86 | SimParams["circuit_code"] = (Int32)Convert.ToUInt32(response["circuit_code"]); | 86 | SimParams["circuit_code"] = (Int32)Convert.ToUInt32(response.CircuitCode); |
87 | SimParams["startpos_x"] = theUser.currentAgent.currentPos.X.ToString(); | 87 | SimParams["startpos_x"] = theUser.currentAgent.currentPos.X.ToString(); |
88 | SimParams["startpos_y"] = theUser.currentAgent.currentPos.Y.ToString(); | 88 | SimParams["startpos_y"] = theUser.currentAgent.currentPos.Y.ToString(); |
89 | SimParams["startpos_z"] = theUser.currentAgent.currentPos.Z.ToString(); | 89 | SimParams["startpos_z"] = theUser.currentAgent.currentPos.Z.ToString(); |