コード例 #1
0
        public static void OP_RemoveEdge(this PM_Maze maze, UEdge2i edge)
        {
            if (maze.Q_Is_Edge_InBounds(edge))
            {
                Directions_Ortho_2D origin_direction = edge.To_Direction();
                maze.LLOP_Remove_Cell_Directions(edge.origin, origin_direction);

                Directions_Ortho_2D exit_direction = edge.Reverse().ToDirection();
                maze.LLOP_Remove_Cell_Directions(edge.exit, exit_direction);
            }
        }