UserProfile.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using libsecondlife;
  5. using OpenSim.Framework.Inventory;
  6. namespace OpenSim.Framework.User
  7. {
  8. public class UserProfile
  9. {
  10. public string firstname;
  11. public string lastname;
  12. public ulong homeregionhandle;
  13. public LLVector3 homepos;
  14. public LLVector3 homelookat;
  15. public bool IsGridGod = false;
  16. public bool IsLocal = true; // will be used in future for visitors from foreign grids
  17. public string AssetURL;
  18. public string MD5passwd;
  19. public LLUUID CurrentSessionID;
  20. public LLUUID CurrentSecureSessionID;
  21. public LLUUID UUID;
  22. public Dictionary<LLUUID, uint> Circuits = new Dictionary<LLUUID, uint>(); // tracks circuit codes
  23. public AgentInventory Inventory;
  24. public UserProfile()
  25. {
  26. Circuits = new Dictionary<LLUUID, uint>();
  27. Inventory = new AgentInventory();
  28. homeregionhandle = Helpers.UIntsToLong((997 * 256), (996 * 256));
  29. homepos = new LLVector3();
  30. homelookat = new LLVector3();
  31. }
  32. public void InitSessionData()
  33. {
  34. CurrentSessionID = LLUUID.Random();
  35. CurrentSecureSessionID = LLUUID.Random();
  36. }
  37. public void AddSimCircuit(uint circuitCode, LLUUID regionUUID)
  38. {
  39. if (this.Circuits.ContainsKey(regionUUID) == false)
  40. this.Circuits.Add(regionUUID, circuitCode);
  41. }
  42. }
  43. }