Beispiel #1
0
        public void RoomGetBlockTest()
        {
            var room = new RoomBuilder(_testChunk)
                       .Build() as Room;

            for (var x = room.BottomLeftCorner.X; x <= room.TopRightCorner.X; x++)
            {
                for (var y = room.BottomLeftCorner.Y; y <= room.TopRightCorner.Y; y++)
                {
                    var block = room.GetBlockType(new IntVector2(x, y));
                    Assert.AreEqual(BlockTypes.None, block, $"Found the wrong block at [{x},{y}].");
                }
            }
        }