aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-09-12 20:12:03 +0000
committerJustin Clarke Casey2008-09-12 20:12:03 +0000
commit52a4c4d82f9c5b808e6c61fd51c1c70e42865565 (patch)
treef63a4ea443597b2d79ad6c2b7acff058c4437425 /OpenSim/Region/Communications/OGS1/OGS1UserServices.cs
parentremove hidden faces inside prim meshes to improve memory use and startup time (diff)
downloadopensim-SC_OLD-52a4c4d82f9c5b808e6c61fd51c1c70e42865565.zip
opensim-SC_OLD-52a4c4d82f9c5b808e6c61fd51c1c70e42865565.tar.gz
opensim-SC_OLD-52a4c4d82f9c5b808e6c61fd51c1c70e42865565.tar.bz2
opensim-SC_OLD-52a4c4d82f9c5b808e6c61fd51c1c70e42865565.tar.xz
* Check in first part of http://opensimulator.org/mantis/view.php?id=2073
* This patch aims to introduce look at direction persistence between logins. It won't be active until the second part of the patch is committed in about two weeks time. At this point, region servers that haven't upgraded past this revision may run into problems * This checkin upgrades the user database. As always, we recommend you have backups in case something goes wrong. * Many thanks to tyre for this patch.
Diffstat (limited to 'OpenSim/Region/Communications/OGS1/OGS1UserServices.cs')
-rw-r--r--OpenSim/Region/Communications/OGS1/OGS1UserServices.cs35
1 files changed, 26 insertions, 9 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs
index 36a82a8..b8268eb 100644
--- a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs
+++ b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs
@@ -235,19 +235,22 @@ namespace OpenSim.Region.Communications.OGS1
235 /// Logs off a user on the user server 235 /// Logs off a user on the user server
236 /// </summary> 236 /// </summary>
237 /// <param name="UserID">UUID of the user</param> 237 /// <param name="UserID">UUID of the user</param>
238 /// <param name="regionData">UUID of the Region</param> 238 /// <param name="regionID">UUID of the Region</param>
239 /// <param name="posx">final position x</param> 239 /// <param name="regionhandle">regionhandle</param>
240 /// <param name="posy">final position y</param> 240 /// <param name="position">final position</param>
241 /// <param name="posz">final position z</param> 241 /// <param name="lookat">final lookat</param>
242 public void LogOffUser(UUID userid, UUID regionid, ulong regionhandle, float posx, float posy, float posz) 242 public void LogOffUser(UUID userid, UUID regionid, ulong regionhandle, Vector3 position, Vector3 lookat)
243 { 243 {
244 Hashtable param = new Hashtable(); 244 Hashtable param = new Hashtable();
245 param["avatar_uuid"] = userid.Guid.ToString(); 245 param["avatar_uuid"] = userid.Guid.ToString();
246 param["region_uuid"] = regionid.Guid.ToString(); 246 param["region_uuid"] = regionid.Guid.ToString();
247 param["region_handle"] = regionhandle.ToString(); 247 param["region_handle"] = regionhandle.ToString();
248 param["region_pos_x"] = posx.ToString(); 248 param["region_pos_x"] = position.X.ToString();
249 param["region_pos_y"] = posy.ToString(); 249 param["region_pos_y"] = position.Y.ToString();
250 param["region_pos_z"] = posz.ToString(); 250 param["region_pos_z"] = position.Z.ToString();
251 param["lookat_x"] = lookat.X.ToString();
252 param["lookat_y"] = lookat.Y.ToString();
253 param["lookat_z"] = lookat.Z.ToString();
251 254
252 IList parameters = new ArrayList(); 255 IList parameters = new ArrayList();
253 parameters.Add(param); 256 parameters.Add(param);
@@ -263,6 +266,20 @@ namespace OpenSim.Region.Communications.OGS1
263 } 266 }
264 } 267 }
265 268
269 /// <summary>
270 /// Logs off a user on the user server (deprecated as of 2008-08-27)
271 /// </summary>
272 /// <param name="UserID">UUID of the user</param>
273 /// <param name="regionID">UUID of the Region</param>
274 /// <param name="regionhandle">regionhandle</param>
275 /// <param name="posx">final position x</param>
276 /// <param name="posy">final position y</param>
277 /// <param name="posz">final position z</param>
278 public void LogOffUser(UUID userid, UUID regionid, ulong regionhandle, float posx, float posy, float posz)
279 {
280 LogOffUser(userid, regionid, regionhandle, new Vector3(posx, posy, posz), new Vector3());
281 }
282
266 public UserProfileData GetUserProfile(string firstName, string lastName) 283 public UserProfileData GetUserProfile(string firstName, string lastName)
267 { 284 {
268 return GetUserProfile(firstName + " " + lastName); 285 return GetUserProfile(firstName + " " + lastName);
@@ -672,7 +689,7 @@ namespace OpenSim.Region.Communications.OGS1
672 } 689 }
673 } 690 }
674 /// <summary> 691 /// <summary>
675 /// Returns a list of FriendsListItems that describe the friends and permissions in the friend relationship for LLUUID friendslistowner 692 /// Returns a list of FriendsListItems that describe the friends and permissions in the friend relationship for UUID friendslistowner
676 /// </summary> 693 /// </summary>
677 /// <param name="friendlistowner">The agent that we're retreiving the friends Data.</param> 694 /// <param name="friendlistowner">The agent that we're retreiving the friends Data.</param>
678 public List<FriendListItem> GetUserFriendList(UUID friendlistowner) 695 public List<FriendListItem> GetUserFriendList(UUID friendlistowner)