namespace Sandbox.Menu;
public partial struct LoadingProgress
{
public string Title { get; set; }
///
/// A value between 0 and 1, to show a progress bar
///
public double Fraction { get; set; }
///
/// The current transfer rate in Megabits per second. 0 is none.
///
public double Mbps { get; set; }
///
/// Delta multipled by 100
///
public readonly double Percent => Fraction * 100.0f;
///
/// The total size of what we're trying to download
///
public double TotalSize { get; set; }
internal static LoadingProgress Create( string title )
{
return new LoadingProgress { Title = title };
}
}