예제 #1
0
        public void T012_TestAddNeighbourRegion()
        {
            TestHelper.InMethod();

            string reason;

            if (acd1 == null)
            {
                fixNullPresence();
            }

            scene.NewUserConnection(acd1, 0, out reason);
            if (testclient == null)
            {
                testclient = new TestClient(acd1, scene);
            }
            scene.AddNewClient(testclient);

            ScenePresence presence = scene.GetScenePresence(agent1);

            presence.MakeRootAgent(new Vector3(90, 90, 90), false);

            string cap = presence.ControllingClient.RequestClientInfo().CapsPath;

            presence.AddNeighbourRegion(region2, cap);
            presence.AddNeighbourRegion(region3, cap);

            List <ulong> neighbours = presence.GetKnownRegionList();

            Assert.That(neighbours.Count, Is.EqualTo(2));
        }
예제 #2
0
        public void T013_TestRemoveNeighbourRegion()
        {
            TestHelper.InMethod();

            ScenePresence presence = scene.GetScenePresence(agent1);

            presence.RemoveNeighbourRegion(region3);

            List <ulong> neighbours = presence.GetKnownRegionList();

            Assert.That(neighbours.Count, Is.EqualTo(1));

            /*
             * presence.MakeChildAgent;
             * presence.MakeRootAgent;
             * CompleteAvatarMovement
             */
        }