diff options
author | gareth | 2007-03-22 10:11:15 +0000 |
---|---|---|
committer | gareth | 2007-03-22 10:11:15 +0000 |
commit | 7daa3955bc3a1918e40962851f9e8d38597a245e (patch) | |
tree | bee3e1372a7eed0c1b220a8a49f7bee7d29a6b91 /OpenSim.Framework/UserProfile.cs | |
parent | Load XML for neighbourinfo from grid (diff) | |
download | opensim-SC-7daa3955bc3a1918e40962851f9e8d38597a245e.zip opensim-SC-7daa3955bc3a1918e40962851f9e8d38597a245e.tar.gz opensim-SC-7daa3955bc3a1918e40962851f9e8d38597a245e.tar.bz2 opensim-SC-7daa3955bc3a1918e40962851f9e8d38597a245e.tar.xz |
brought zircon branch into trunk
Diffstat (limited to 'OpenSim.Framework/UserProfile.cs')
-rw-r--r-- | OpenSim.Framework/UserProfile.cs | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/OpenSim.Framework/UserProfile.cs b/OpenSim.Framework/UserProfile.cs new file mode 100644 index 0000000..2c264c5 --- /dev/null +++ b/OpenSim.Framework/UserProfile.cs | |||
@@ -0,0 +1,50 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using libsecondlife; | ||
5 | using OpenSim.Framework.Inventory; | ||
6 | |||
7 | namespace OpenSim.Framework.User | ||
8 | { | ||
9 | public class UserProfile | ||
10 | { | ||
11 | |||
12 | public string firstname; | ||
13 | public string lastname; | ||
14 | public ulong homeregionhandle; | ||
15 | public LLVector3 homepos; | ||
16 | public LLVector3 homelookat; | ||
17 | |||
18 | public bool IsGridGod = false; | ||
19 | public bool IsLocal = true; // will be used in future for visitors from foreign grids | ||
20 | public string AssetURL; | ||
21 | public string MD5passwd; | ||
22 | |||
23 | public LLUUID CurrentSessionID; | ||
24 | public LLUUID CurrentSecureSessionID; | ||
25 | public LLUUID UUID; | ||
26 | public Dictionary<LLUUID, uint> Circuits = new Dictionary<LLUUID, uint>(); // tracks circuit codes | ||
27 | |||
28 | public AgentInventory Inventory; | ||
29 | |||
30 | public UserProfile() | ||
31 | { | ||
32 | Circuits = new Dictionary<LLUUID, uint>(); | ||
33 | Inventory = new AgentInventory(); | ||
34 | homeregionhandle = Helpers.UIntsToLong((997 * 256), (996 * 256)); ; | ||
35 | } | ||
36 | |||
37 | public void InitSessionData() | ||
38 | { | ||
39 | CurrentSessionID = LLUUID.Random(); | ||
40 | CurrentSecureSessionID = LLUUID.Random(); | ||
41 | } | ||
42 | |||
43 | public void AddSimCircuit(uint circuitCode, LLUUID regionUUID) | ||
44 | { | ||
45 | if (this.Circuits.ContainsKey(regionUUID) == false) | ||
46 | this.Circuits.Add(regionUUID, circuitCode); | ||
47 | } | ||
48 | |||
49 | } | ||
50 | } | ||