Exemplo n.º 1
0
        public void ResizeFloor(Dir8 expandDir, Dir8 anchorDir, int newX, int newY, int newRoomX, int newRoomY)
        {
            // add to empty space
            TestFloorPlan floorPlan = TestFloorPlan.InitFloorToContext(
                new Rect(Loc.Zero, new Loc(22, 14)),
                new Rect[] { new Rect(4, 3, 2, 3) },
                Array.Empty <Rect>(),
                Array.Empty <Tuple <char, char> >());

            TestFloorPlan compareFloorPlan = TestFloorPlan.InitFloorToContext(
                new Rect(new Loc(newX, newY), new Loc(26, 17)),
                new Rect[] { new Rect(newRoomX, newRoomY, 2, 3) },
                Array.Empty <Rect>(),
                Array.Empty <Tuple <char, char> >());

            floorPlan.Resize(new Loc(26, 17), expandDir, anchorDir);

            TestFloorPlan.CompareFloorPlans(floorPlan, compareFloorPlan);
        }