Пример #1
0
        public void FoldTerrain()
        {
            int[,,] world = WorldScript.GenerateTerrain(128, 128);
            Dictionary <int, int[, , ]> folds = WorldScript.FoldTerrain(world, 128, 128);

            Assert.AreEqual(8, folds.Count);
        }
Пример #2
0
 public void FoldTerrainByFactor()
 {
     int[,,] world       = WorldScript.GenerateTerrain(8, 8);
     int[,,] foldedWorld = WorldScript.FoldTerrainByFactor(2, world, 8, 8);
     Assert.AreEqual(64, foldedWorld.Length);
 }
Пример #3
0
 public void GenerateTerrain()
 {
     int[,,] world = WorldScript.GenerateTerrain(2, 2);
     Assert.AreEqual(world.Length, 8);
 }