* test: Add basic scene test which merely instantiates the scene right now

* set debug scene name on scene registration, rather than within the Scene constructor
This commit is contained in:
Justin Clarke Casey
2008-10-31 18:39:51 +00:00
parent 1f52ca97c7
commit 269303d97d
5 changed files with 66 additions and 13 deletions

View File

@@ -76,19 +76,10 @@ namespace OpenSim.Region.Environment.Scenes
private GetLandData handlerGetLandData = null; // OnGetLandData
public KiPrimitiveDelegate KiPrimitive;
public string _debugRegionName = String.Empty;
public string debugRegionName
{
get { return _debugRegionName; }
set { _debugRegionName = value; }
}
public SceneCommunicationService(CommunicationsManager commsMan)
{
m_commsProvider = commsMan;
m_commsProvider.GridService.gdebugRegionName = _debugRegionName;
m_commsProvider.InterRegion.rdebugRegionName = _debugRegionName;
}
/// <summary>
@@ -99,13 +90,15 @@ namespace OpenSim.Region.Environment.Scenes
public void RegisterRegion(RegionInfo regionInfos)
{
m_regionInfo = regionInfos;
m_commsProvider.GridService.gdebugRegionName = regionInfos.RegionName;
m_commsProvider.InterRegion.rdebugRegionName = regionInfos.RegionName;
regionCommsHost = m_commsProvider.GridService.RegisterRegion(m_regionInfo);
if (regionCommsHost != null)
{
//m_log.Info("[INTER]: " + debugRegionName + ": SceneCommunicationService: registered with gridservice and got" + regionCommsHost.ToString());
regionCommsHost.debugRegionName = _debugRegionName;
regionCommsHost.debugRegionName = regionInfos.RegionName;
regionCommsHost.OnExpectPrim += IncomingPrimCrossing;
regionCommsHost.OnExpectUser += NewUserConnection;
regionCommsHost.OnAvatarCrossingIntoRegion += AgentCrossing;