parent
0bda2cf5bc
commit
4c731dd44e
|
@ -56,18 +56,7 @@ namespace OpenSim.Region.Environment.Scenes.Tests
|
||||||
{
|
{
|
||||||
// I don't care, just leave log4net off
|
// I don't care, just leave log4net off
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static public Random random;
|
|
||||||
SceneObjectGroup found;
|
|
||||||
Scene scene;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Test adding an object to a scene. Doesn't yet do what it says on the tin.
|
|
||||||
/// </summary>
|
|
||||||
[Test]
|
|
||||||
public void T001_TestAddSceneObject()
|
|
||||||
{
|
|
||||||
RegionInfo regInfo = new RegionInfo(1000, 1000, null, null);
|
RegionInfo regInfo = new RegionInfo(1000, 1000, null, null);
|
||||||
regInfo.RegionName = "Unit test region";
|
regInfo.RegionName = "Unit test region";
|
||||||
AgentCircuitManager acm = new AgentCircuitManager();
|
AgentCircuitManager acm = new AgentCircuitManager();
|
||||||
|
@ -80,24 +69,12 @@ namespace OpenSim.Region.Environment.Scenes.Tests
|
||||||
|
|
||||||
scene
|
scene
|
||||||
= new Scene(regInfo, acm, cm, scs, null, sm, null, null, false, false, false, configSource, null);
|
= new Scene(regInfo, acm, cm, scs, null, sm, null, null, false, false, false, configSource, null);
|
||||||
|
|
||||||
SceneObjectGroup sceneObject = new SceneObjectGroup();
|
|
||||||
SceneObjectPart part
|
|
||||||
= new SceneObjectPart(UUID.Random(), PrimitiveBaseShape.Default, Vector3.Zero, Quaternion.Identity, Vector3.Zero);
|
|
||||||
//part.UpdatePrimFlags(false, false, true);
|
|
||||||
part.ObjectFlags |= (uint)PrimFlags.Phantom;
|
|
||||||
|
|
||||||
sceneObject.SetRootPart(part);
|
|
||||||
|
|
||||||
scene.AddNewSceneObject(sceneObject, false);
|
|
||||||
|
|
||||||
SceneObjectPart retrievedPart = scene.GetSceneObjectPart(part.LocalId);
|
|
||||||
|
|
||||||
//System.Console.WriteLine("retrievedPart : {0}", retrievedPart);
|
|
||||||
// If the parts have the same UUID then we will consider them as one and the same
|
|
||||||
Assert.That(retrievedPart.UUID, Is.EqualTo(part.UUID));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static public Random random;
|
||||||
|
SceneObjectGroup found;
|
||||||
|
Scene scene;
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void T010_AddObjects()
|
public void T010_AddObjects()
|
||||||
{
|
{
|
||||||
|
@ -181,8 +158,8 @@ namespace OpenSim.Region.Environment.Scenes.Tests
|
||||||
{
|
{
|
||||||
EntityList entlist = new EntityList();
|
EntityList entlist = new EntityList();
|
||||||
UUID id = UUID.Random();
|
UUID id = UUID.Random();
|
||||||
int exceptions = 0;
|
//int exceptions = 0;
|
||||||
Dictionary<UUID, uint> dict = new Dictionary<UUID,uint>();
|
//Dictionary<UUID, uint> dict = new Dictionary<UUID,uint>();
|
||||||
List<Thread> trdlist = new List<Thread>();
|
List<Thread> trdlist = new List<Thread>();
|
||||||
SceneObjectGroup sog = NewSOG(id);
|
SceneObjectGroup sog = NewSOG(id);
|
||||||
uint lid = sog.LocalId;
|
uint lid = sog.LocalId;
|
||||||
|
|
Loading…
Reference in New Issue