1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 17:32:54 +08:00

Add note about reasoning behind MultiplayerClient.GetAPIBeatmap call

This commit is contained in:
Dean Herbert 2021-12-13 13:39:32 +09:00
parent 3ea07b426b
commit c097dc8048

View File

@ -166,6 +166,8 @@ namespace osu.Game.Screens.OnlinePlay
IBeatmapInfo foundBeatmap;
if (multiplayerClient != null)
// This call can eventually go away (and use the else case below).
// Currently required only due to the method being overridden to provide special behaviour in tests.
foundBeatmap = await multiplayerClient.GetAPIBeatmap(Item.BeatmapID).ConfigureAwait(false);
else
foundBeatmap = await beatmapLookupCache.GetBeatmapAsync(Item.BeatmapID).ConfigureAwait(false);