mirror of
https://github.com/opensim/opensim.git
synced 2026-06-11 22:55:48 +08:00
* cleaned away suo and user files. * added handy string chat variety to the API * Moved LockPhysicsEngine on World to SyncRoot on IWorld * Introduced NextLocalId instead of World fuggliness. * Transformed GetRegionInfo to Property on IWorld for great justice * Extracted default wearables (good to have) * Deleted unused BaseServer * Used IWorld instead of World wherever possible * The client constructor's not getting unused port any longer. * Extracted ClientView factoring so PacketServer can be tweaked. * Added SendLayerData to World * Made WorldBase abstract and cleaned it up a bit * added OpenGrid.Framework.Communications.dll.build and OpenSim.World.dll.build to svn * Added code for two examples (but not in prebuild yet)
39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
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);
|
|
}
|
|
}
|
|
}
|