AuthenticateSessionsLocal.cs 1010 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using libsecondlife;
  5. using OpenSim.Framework.Types;
  6. using OpenSim.Framework;
  7. namespace OpenSim
  8. {
  9. public class AuthenticateSessionsLocal : AuthenticateSessionsBase
  10. {
  11. public AuthenticateSessionsLocal()
  12. {
  13. }
  14. public void AddNewSession(Login loginData)
  15. {
  16. AgentCircuitData agent = new AgentCircuitData();
  17. agent.AgentID = loginData.Agent;
  18. agent.firstname = loginData.First;
  19. agent.lastname = loginData.Last;
  20. agent.SessionID = loginData.Session;
  21. agent.SecureSessionID = loginData.SecureSession;
  22. agent.circuitcode = loginData.CircuitCode;
  23. agent.BaseFolder = loginData.BaseFolder;
  24. agent.InventoryFolder = loginData.InventoryFolder;
  25. agent.startpos = new LLVector3(128,128,70);
  26. this.AddNewCircuit(agent.circuitcode, agent);
  27. }
  28. }
  29. }