Add polling time to ctor

This commit is contained in:
Dean Herbert
2018-12-14 19:17:21 +09:00
parent 3fda40c4ac
commit 38fd35a0cf
2 changed files with 17 additions and 4 deletions

View File

@ -22,7 +22,8 @@ namespace osu.Game.Online
private double timeBetweenPolls;
/// <summary>
/// The time that should be waited between polls.
/// The time in milliseconds to wait between polls.
/// Setting to zero stops all polling.
/// </summary>
public double TimeBetweenPolls
{
@ -35,6 +36,15 @@ namespace osu.Game.Online
}
}
/// <summary>
///
/// </summary>
/// <param name="timeBetweenPolls">The initial time in milliseconds to wait between polls. Setting to zero stops al polling.</param>
protected PollingComponent(double timeBetweenPolls = 0)
{
TimeBetweenPolls = timeBetweenPolls;
}
protected override void LoadComplete()
{
base.LoadComplete();