aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.RegionServer/AuthenticateSessionsLocal.cs
blob: 4db7ccbaf4a66266e3dfcee6f19b1889f855f940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.Text;
using libsecondlife;
using OpenSim.Framework.Types;
using OpenSim.Framework;

namespace OpenSim
{
    public class AuthenticateSessionsLocal : AuthenticateSessionsBase
    {
        public AuthenticateSessionsLocal()
        {

        }
    
        public bool AddNewSessionHandler(ulong regionHandle, Login loginData)
        {
            AddNewSession( loginData );
            return true;
        }
        
        public void AddNewSession(Login loginData)
        {
            AgentCircuitData agent = new AgentCircuitData();
            agent.AgentID = loginData.Agent;
            agent.firstname = loginData.First;
            agent.lastname = loginData.Last;
            agent.SessionID = loginData.Session;
            agent.SecureSessionID = loginData.SecureSession;
            agent.circuitcode = loginData.CircuitCode;
            agent.BaseFolder = loginData.BaseFolder;
            agent.InventoryFolder = loginData.InventoryFolder;
            agent.startpos = new LLVector3(128,128,70);
            this.AddNewCircuit(agent.circuitcode, agent);
        }
    }
}