diff --git a/Quaver.API/Maps/Qua.cs b/Quaver.API/Maps/Qua.cs index 0e0fc4b86..9ea82d7dc 100644 --- a/Quaver.API/Maps/Qua.cs +++ b/Quaver.API/Maps/Qua.cs @@ -583,6 +583,17 @@ public TimingPointInfo GetTimingPointAt(double time) return TimingPoints[index]; } + /// + /// Gets the bookmark at a particular time in the map. + /// + /// + /// + public BookmarkInfo GetBookmarkAt(int time) + { + var index = Bookmarks.FindIndex(b => b.StartTime == time); + return index == -1 ? null : Bookmarks[index]; + } + /// /// Gets a scroll velocity at a particular time in the map ///