2010-09-06 22:00:24 +00:00
|
|
|
/*
|
2008-11-11 21:31:39 +00:00
|
|
|
* Copyright (c) Contributors, http://opensimulator.org/
|
|
|
|
* See CONTRIBUTORS.TXT for a full list of copyright holders.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions are met:
|
|
|
|
* * Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* * Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
2009-06-01 06:37:14 +00:00
|
|
|
* * Neither the name of the OpenSimulator Project nor the
|
2008-11-11 21:31:39 +00:00
|
|
|
* names of its contributors may be used to endorse or promote products
|
|
|
|
* derived from this software without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
|
|
|
|
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
|
* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
|
|
|
|
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
|
|
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
|
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
|
|
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
2009-05-06 20:02:49 +00:00
|
|
|
using System;
|
2008-11-11 21:31:39 +00:00
|
|
|
using Nini.Config;
|
|
|
|
using OpenSim.Framework;
|
|
|
|
using OpenSim.Framework.Communications;
|
|
|
|
using OpenSim.Framework.Servers;
|
2009-02-06 16:55:34 +00:00
|
|
|
using OpenSim.Region.Framework;
|
2010-09-12 21:20:26 +00:00
|
|
|
using OpenSim.Region.Framework.Interfaces;
|
2009-02-06 16:55:34 +00:00
|
|
|
using OpenSim.Region.Framework.Scenes;
|
2015-08-31 04:05:36 +00:00
|
|
|
using OpenSim.Region.PhysicsModules.SharedBase;
|
2014-05-30 20:11:46 +00:00
|
|
|
using OpenSim.Services.Interfaces;
|
2008-11-11 21:31:39 +00:00
|
|
|
|
2014-10-08 20:09:25 +00:00
|
|
|
namespace OpenSim.Tests.Common
|
2009-09-30 16:00:09 +00:00
|
|
|
{
|
2008-11-11 21:31:39 +00:00
|
|
|
public class TestScene : Scene
|
2009-09-30 16:00:09 +00:00
|
|
|
{
|
2008-11-11 21:31:39 +00:00
|
|
|
public TestScene(
|
2015-08-31 21:09:15 +00:00
|
|
|
RegionInfo regInfo, AgentCircuitManager authen,
|
2015-08-30 22:52:26 +00:00
|
|
|
ISimulationDataService simDataService, IEstateDataService estateDataService,
|
2011-10-15 02:03:05 +00:00
|
|
|
IConfigSource config, string simulatorVersion)
|
2015-08-31 21:09:15 +00:00
|
|
|
: base(regInfo, authen, simDataService, estateDataService,
|
2013-02-06 02:21:17 +00:00
|
|
|
config, simulatorVersion)
|
2008-11-11 21:31:39 +00:00
|
|
|
{
|
|
|
|
}
|
2012-02-07 23:03:53 +00:00
|
|
|
|
|
|
|
~TestScene()
|
|
|
|
{
|
2012-02-15 01:45:25 +00:00
|
|
|
//Console.WriteLine("TestScene destructor called for {0}", RegionInfo.RegionName);
|
|
|
|
Console.WriteLine("TestScene destructor called");
|
2012-02-07 23:03:53 +00:00
|
|
|
}
|
2009-04-15 17:40:04 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Temporarily override session authentication for tests (namely teleport).
|
|
|
|
/// </summary>
|
2011-10-15 02:03:05 +00:00
|
|
|
/// <remarks>
|
2009-04-15 17:40:04 +00:00
|
|
|
/// TODO: This needs to be mocked out properly.
|
2011-10-15 02:03:05 +00:00
|
|
|
/// </remarks>
|
2009-04-15 17:40:04 +00:00
|
|
|
/// <param name="agent"></param>
|
|
|
|
/// <returns></returns>
|
2010-01-17 05:42:44 +00:00
|
|
|
public override bool VerifyUserPresence(AgentCircuitData agent, out string reason)
|
2009-04-15 17:40:04 +00:00
|
|
|
{
|
2009-05-06 20:02:49 +00:00
|
|
|
reason = String.Empty;
|
2009-04-15 17:40:04 +00:00
|
|
|
return true;
|
2009-09-30 16:00:09 +00:00
|
|
|
}
|
2008-11-11 21:31:39 +00:00
|
|
|
|
|
|
|
public AsyncSceneObjectGroupDeleter SceneObjectGroupDeleter
|
|
|
|
{
|
|
|
|
get { return m_asyncSceneObjectDeleter; }
|
2010-09-12 17:43:49 +00:00
|
|
|
}
|
2008-11-11 21:31:39 +00:00
|
|
|
}
|
2012-11-12 22:50:28 +00:00
|
|
|
}
|