namespace ReactorMaintenance.Simulation;

internal static class LevelTraversal
{
    public static IEnumerable<GridPosition> AllPositions(LevelState level)
    {
        for (var y = 0; y < level.Height; y++)
        {
            for (var x = 0; x < level.Width; x++)
                yield return new(x, y);
        }
    }
}