Skip to content

Commit

Permalink
Add GetBookmarkAt() to qua
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamQiufeng committed Apr 13, 2024
1 parent c2641dd commit f3b90a3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Quaver.API/Maps/Qua.cs
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,18 @@ public TimingPointInfo GetTimingPointAt(double time)

return TimingPoints[index];
}


/// <summary>
/// Gets the bookmark at a particular time in the map.
/// </summary>
/// <param name="time"></param>
/// <returns></returns>
public BookmarkInfo GetBookmarkAt(int time)
{
var index = Bookmarks.FindIndex(b => b.StartTime == time);
return index == -1 ? null : Bookmarks[index];
}

/// <summary>
/// Gets a scroll velocity at a particular time in the map
Expand Down

0 comments on commit f3b90a3

Please sign in to comment.