diff options
author | lbsa71 | 2007-10-05 11:27:46 +0000 |
---|---|---|
committer | lbsa71 | 2007-10-05 11:27:46 +0000 |
commit | ed6168b96b687a2f44177af8200d13b427089099 (patch) | |
tree | 2d87efb9c800f06233cbef0612617eba2c931f68 /OpenSim/Framework/Communications/UserManagerBase.cs | |
parent | == The "right name and place" commit == (diff) | |
download | opensim-SC-ed6168b96b687a2f44177af8200d13b427089099.zip opensim-SC-ed6168b96b687a2f44177af8200d13b427089099.tar.gz opensim-SC-ed6168b96b687a2f44177af8200d13b427089099.tar.bz2 opensim-SC-ed6168b96b687a2f44177af8200d13b427089099.tar.xz |
* UserProfileData meets code conventions
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Communications/UserManagerBase.cs | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/OpenSim/Framework/Communications/UserManagerBase.cs b/OpenSim/Framework/Communications/UserManagerBase.cs index 56ed959..d04101c 100644 --- a/OpenSim/Framework/Communications/UserManagerBase.cs +++ b/OpenSim/Framework/Communications/UserManagerBase.cs | |||
@@ -96,7 +96,7 @@ namespace OpenSim.Framework.UserManagement | |||
96 | try | 96 | try |
97 | { | 97 | { |
98 | UserProfileData profile = plugin.Value.GetUserByUUID(uuid); | 98 | UserProfileData profile = plugin.Value.GetUserByUUID(uuid); |
99 | profile.currentAgent = getUserAgent(profile.UUID); | 99 | profile.CurrentAgent = getUserAgent(profile.UUID); |
100 | return profile; | 100 | return profile; |
101 | } | 101 | } |
102 | catch (Exception e) | 102 | catch (Exception e) |
@@ -121,7 +121,7 @@ namespace OpenSim.Framework.UserManagement | |||
121 | try | 121 | try |
122 | { | 122 | { |
123 | UserProfileData profile = plugin.Value.GetUserByName(name); | 123 | UserProfileData profile = plugin.Value.GetUserByName(name); |
124 | profile.currentAgent = getUserAgent(profile.UUID); | 124 | profile.CurrentAgent = getUserAgent(profile.UUID); |
125 | return profile; | 125 | return profile; |
126 | } | 126 | } |
127 | catch (Exception e) | 127 | catch (Exception e) |
@@ -148,7 +148,7 @@ namespace OpenSim.Framework.UserManagement | |||
148 | { | 148 | { |
149 | UserProfileData profile = plugin.Value.GetUserByName(fname,lname); | 149 | UserProfileData profile = plugin.Value.GetUserByName(fname,lname); |
150 | 150 | ||
151 | profile.currentAgent = getUserAgent(profile.UUID); | 151 | profile.CurrentAgent = getUserAgent(profile.UUID); |
152 | 152 | ||
153 | return profile; | 153 | return profile; |
154 | } | 154 | } |
@@ -233,7 +233,7 @@ namespace OpenSim.Framework.UserManagement | |||
233 | public void clearUserAgent(LLUUID agentID) | 233 | public void clearUserAgent(LLUUID agentID) |
234 | { | 234 | { |
235 | UserProfileData profile = GetUserProfile(agentID); | 235 | UserProfileData profile = GetUserProfile(agentID); |
236 | profile.currentAgent = null; | 236 | profile.CurrentAgent = null; |
237 | setUserProfile(profile); | 237 | setUserProfile(profile); |
238 | } | 238 | } |
239 | 239 | ||
@@ -292,8 +292,8 @@ namespace OpenSim.Framework.UserManagement | |||
292 | agent.UUID = profile.UUID; | 292 | agent.UUID = profile.UUID; |
293 | 293 | ||
294 | // Current position (from Home) | 294 | // Current position (from Home) |
295 | agent.currentHandle = profile.homeRegion; | 295 | agent.currentHandle = profile.HomeRegion; |
296 | agent.currentPos = profile.homeLocation; | 296 | agent.currentPos = profile.HomeLocation; |
297 | 297 | ||
298 | // If user specified additional start, use that | 298 | // If user specified additional start, use that |
299 | if (requestData.ContainsKey("start")) | 299 | if (requestData.ContainsKey("start")) |
@@ -326,7 +326,7 @@ namespace OpenSim.Framework.UserManagement | |||
326 | agent.regionID = new LLUUID(); // Fill in later | 326 | agent.regionID = new LLUUID(); // Fill in later |
327 | agent.currentRegion = new LLUUID(); // Fill in later | 327 | agent.currentRegion = new LLUUID(); // Fill in later |
328 | 328 | ||
329 | profile.currentAgent = agent; | 329 | profile.CurrentAgent = agent; |
330 | } | 330 | } |
331 | 331 | ||
332 | /// <summary> | 332 | /// <summary> |
@@ -349,16 +349,16 @@ namespace OpenSim.Framework.UserManagement | |||
349 | public void AddUserProfile(string firstName, string lastName, string pass, uint regX, uint regY) | 349 | public void AddUserProfile(string firstName, string lastName, string pass, uint regX, uint regY) |
350 | { | 350 | { |
351 | UserProfileData user = new UserProfileData(); | 351 | UserProfileData user = new UserProfileData(); |
352 | user.homeLocation = new LLVector3(128, 128, 100); | 352 | user.HomeLocation = new LLVector3(128, 128, 100); |
353 | user.UUID = LLUUID.Random(); | 353 | user.UUID = LLUUID.Random(); |
354 | user.username = firstName; | 354 | user.Firstname = firstName; |
355 | user.surname = lastName; | 355 | user.Lastname = lastName; |
356 | user.passwordHash = pass; | 356 | user.PasswordHash = pass; |
357 | user.passwordSalt = ""; | 357 | user.PasswordSalt = ""; |
358 | user.created = Util.UnixTimeSinceEpoch(); | 358 | user.Created = Util.UnixTimeSinceEpoch(); |
359 | user.homeLookAt = new LLVector3(100, 100, 100); | 359 | user.HomeLookAt = new LLVector3(100, 100, 100); |
360 | user.homeRegionX = regX; | 360 | user.HomeRegionX = regX; |
361 | user.homeRegionY = regY; | 361 | user.HomeRegionY = regY; |
362 | 362 | ||
363 | foreach (KeyValuePair<string, IUserData> plugin in _plugins) | 363 | foreach (KeyValuePair<string, IUserData> plugin in _plugins) |
364 | { | 364 | { |