aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorSean Dague2008-04-10 23:51:42 +0000
committerSean Dague2008-04-10 23:51:42 +0000
commitf2bd8b4aed8b034647726d7bf7d6c1c8566a12d8 (patch)
treeae35fdcca1eb396e457a279e5314f7237d19b92f /OpenSim/Framework
parent* With Grid Comms up in the air.. I decided have the friends module update ... (diff)
downloadopensim-SC_OLD-f2bd8b4aed8b034647726d7bf7d6c1c8566a12d8.zip
opensim-SC_OLD-f2bd8b4aed8b034647726d7bf7d6c1c8566a12d8.tar.gz
opensim-SC_OLD-f2bd8b4aed8b034647726d7bf7d6c1c8566a12d8.tar.bz2
opensim-SC_OLD-f2bd8b4aed8b034647726d7bf7d6c1c8566a12d8.tar.xz
add some convenience properties. Move all the fields
to the top of the file.
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/UserProfileData.cs169
1 files changed, 100 insertions, 69 deletions
diff --git a/OpenSim/Framework/UserProfileData.cs b/OpenSim/Framework/UserProfileData.cs
index 73c9137..254e903 100644
--- a/OpenSim/Framework/UserProfileData.cs
+++ b/OpenSim/Framework/UserProfileData.cs
@@ -65,6 +65,76 @@ namespace OpenSim.Framework
65 /// </summary> 65 /// </summary>
66 private string _passwordSalt; 66 private string _passwordSalt;
67 67
68 private uint _homeRegionX;
69 private uint _homeRegionY;
70
71 /// <summary>
72 /// The coordinates inside the region of the home location
73 /// </summary>
74 private LLVector3 _homeLocation;
75
76 /// <summary>
77 /// Where the user will be looking when they rez.
78 /// </summary>
79 private LLVector3 _homeLookAt;
80
81 /// <summary>
82 /// A UNIX Timestamp (seconds since epoch) for the users creation
83 /// </summary>
84 private int _created;
85
86 /// <summary>
87 /// A UNIX Timestamp for the users last login date / time
88 /// </summary>
89 private int _lastLogin;
90
91 private LLUUID _rootInventoryFolderID;
92
93 /// <summary>
94 /// A URI to the users inventory server, used for foreigners and large grids
95 /// </summary>
96 private string _userInventoryURI = String.Empty;
97
98 /// <summary>
99 /// A URI to the users asset server, used for foreigners and large grids.
100 /// </summary>
101 private string _userAssetURI = String.Empty;
102
103 /// <summary>
104 /// A uint mask containing the "I can do" fields of the users profile
105 /// </summary>
106 private uint _profileCanDoMask;
107
108 /// <summary>
109 /// A uint mask containing the "I want to do" part of the users profile
110 /// </summary>
111 private uint _profileWantDoMask; // Profile window "I want to" mask
112
113 /// <summary>
114 /// The about text listed in a users profile.
115 /// </summary>
116 private string _profileAboutText = String.Empty;
117
118 /// <summary>
119 /// The first life about text listed in a users profile
120 /// </summary>
121 private string _profileFirstText = String.Empty;
122
123 /// <summary>
124 /// The profile image for an avatar stored on the asset server
125 /// </summary>
126 private LLUUID _profileImage;
127
128 /// <summary>
129 /// The profile image for the users first life tab
130 /// </summary>
131 private LLUUID _profileFirstImage;
132
133 /// <summary>
134 /// The users last registered agent (filled in on the user server)
135 /// </summary>
136 private UserAgentData _currentAgent;
137
68 /// <summary> 138 /// <summary>
69 /// The regionhandle of the users preffered home region. If multiple sims occupy the same spot, the grid may decide which region the user logs into 139 /// The regionhandle of the users preffered home region. If multiple sims occupy the same spot, the grid may decide which region the user logs into
70 /// </summary> 140 /// </summary>
@@ -78,6 +148,7 @@ namespace OpenSim.Framework
78 } 148 }
79 } 149 }
80 150
151 // Property wrappers
81 public LLUUID ID { 152 public LLUUID ID {
82 get { 153 get {
83 return _id; 154 return _id;
@@ -159,6 +230,21 @@ namespace OpenSim.Framework
159 } 230 }
160 } 231 }
161 232
233 // for handy serialization
234 public float HomeLocationX {
235 get { return _homeLocation.X; }
236 set { _homeLocation.X = value; }
237 }
238 public float HomeLocationY {
239 get { return _homeLocation.Y; }
240 set { _homeLocation.Y = value; }
241 }
242 public float HomeLocationZ {
243 get { return _homeLocation.Z; }
244 set { _homeLocation.Z = value; }
245 }
246
247
162 public LLVector3 HomeLookAt { 248 public LLVector3 HomeLookAt {
163 get { 249 get {
164 return _homeLookAt; 250 return _homeLookAt;
@@ -167,6 +253,20 @@ namespace OpenSim.Framework
167 _homeLookAt = value; 253 _homeLookAt = value;
168 } 254 }
169 } 255 }
256
257 // for handy serialization
258 public float HomeLookAtX {
259 get { return _homeLookAt.X; }
260 set { _homeLookAt.X = value; }
261 }
262 public float HomeLookAtY {
263 get { return _homeLookAt.Y; }
264 set { _homeLookAt.Y = value; }
265 }
266 public float HomeLookAtZ {
267 get { return _homeLookAt.Z; }
268 set { _homeLookAt.Z = value; }
269 }
170 270
171 public int Created { 271 public int Created {
172 get { 272 get {
@@ -276,74 +376,5 @@ namespace OpenSim.Framework
276 } 376 }
277 } 377 }
278 378
279 private uint _homeRegionX;
280 private uint _homeRegionY;
281
282 /// <summary>
283 /// The coordinates inside the region of the home location
284 /// </summary>
285 private LLVector3 _homeLocation;
286
287 /// <summary>
288 /// Where the user will be looking when they rez.
289 /// </summary>
290 private LLVector3 _homeLookAt;
291
292 /// <summary>
293 /// A UNIX Timestamp (seconds since epoch) for the users creation
294 /// </summary>
295 private int _created;
296
297 /// <summary>
298 /// A UNIX Timestamp for the users last login date / time
299 /// </summary>
300 private int _lastLogin;
301
302 private LLUUID _rootInventoryFolderID;
303
304 /// <summary>
305 /// A URI to the users inventory server, used for foreigners and large grids
306 /// </summary>
307 private string _userInventoryURI = String.Empty;
308
309 /// <summary>
310 /// A URI to the users asset server, used for foreigners and large grids.
311 /// </summary>
312 private string _userAssetURI = String.Empty;
313
314 /// <summary>
315 /// A uint mask containing the "I can do" fields of the users profile
316 /// </summary>
317 private uint _profileCanDoMask;
318
319 /// <summary>
320 /// A uint mask containing the "I want to do" part of the users profile
321 /// </summary>
322 private uint _profileWantDoMask; // Profile window "I want to" mask
323
324 /// <summary>
325 /// The about text listed in a users profile.
326 /// </summary>
327 private string _profileAboutText = String.Empty;
328
329 /// <summary>
330 /// The first life about text listed in a users profile
331 /// </summary>
332 private string _profileFirstText = String.Empty;
333
334 /// <summary>
335 /// The profile image for an avatar stored on the asset server
336 /// </summary>
337 private LLUUID _profileImage;
338
339 /// <summary>
340 /// The profile image for the users first life tab
341 /// </summary>
342 private LLUUID _profileFirstImage;
343
344 /// <summary>
345 /// The users last registered agent (filled in on the user server)
346 /// </summary>
347 private UserAgentData _currentAgent;
348 } 379 }
349} 380}