UserProfile.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. }
  30. public void InitSessionData()
  31. {
  32. CurrentSessionID = LLUUID.Random();
  33. CurrentSecureSessionID = LLUUID.Random();
  34. }
  35. public void AddSimCircuit(uint circuitCode, LLUUID regionUUID)
  36. {
  37. if (this.Circuits.ContainsKey(regionUUID) == false)
  38. this.Circuits.Add(regionUUID, circuitCode);
  39. }
  40. }
  41. }