mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Make statistics a bit less strange
This commit is contained in:
@@ -66,12 +66,36 @@ namespace SabreTools.DatFiles
|
||||
/// <summary>
|
||||
/// Total machine count to use on output
|
||||
/// </summary>
|
||||
public long MachineCount { get; set; } = 0;
|
||||
public long MachineCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Determines if statistics are for a directory or not
|
||||
/// </summary>
|
||||
public bool IsDirectory { get; set; } = false;
|
||||
public readonly bool IsDirectory;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor
|
||||
/// </summary>
|
||||
public DatStatistics()
|
||||
{
|
||||
DisplayName = null;
|
||||
MachineCount = 0;
|
||||
IsDirectory = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Constructor for aggregate data
|
||||
/// </summary>
|
||||
public DatStatistics(string? displayName, bool isDirectory)
|
||||
{
|
||||
DisplayName = displayName;
|
||||
MachineCount = 0;
|
||||
IsDirectory = isDirectory;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user