1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 00:47:24 +08:00

xmldoc + reword

This commit is contained in:
smoogipoo 2018-08-15 09:51:02 +09:00
parent 2019a89a08
commit 26d4bb5451

View File

@ -15,7 +15,11 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns
/// </summary>
internal abstract class PatternGenerator
{
private const int max_rng_iterations = 100;
/// <summary>
/// An arbitrary maximum amount of iterations to perform in <see cref="RunWhile"/>.
/// The specific value is not super important - enough such that no false-positives occur.
/// </summary>
private const int max_rng_iterations = 20;
/// <summary>
/// The last pattern.
@ -59,7 +63,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns
// Generate + log an error/stacktrace
Logger.Log($"Allowable time exceeded for hitobject generation:\n{new StackTrace(0)}", level: LogLevel.Error);
Logger.Log($"Allowable iterations ({max_rng_iterations}) exceeded:\n{new StackTrace(0)}", level: LogLevel.Error);
}
/// <summary>