Files
SabreTools/SabreTools.DatFiles/Formats/Hashfile.cs

25 lines
719 B
C#
Raw Normal View History

2023-07-28 21:34:34 -04:00
using SabreTools.Core;
namespace SabreTools.DatFiles.Formats
{
2019-01-11 13:43:15 -08:00
/// <summary>
2023-07-28 21:34:34 -04:00
/// Represents a hashfile such as an SFV, MD5, or SHA-1 file
2019-01-11 13:43:15 -08:00
/// </summary>
2023-07-28 21:34:34 -04:00
internal partial class Hashfile : DatFile
2019-01-11 13:43:15 -08:00
{
// Private instance variables specific to Hashfile DATs
private readonly Hash _hash;
2019-01-11 13:43:15 -08:00
/// <summary>
/// Constructor designed for casting a base DatFile
/// </summary>
/// <param name="datFile">Parent DatFile to copy from</param>
/// <param name="hash">Type of hash that is associated with this DAT</param>
public Hashfile(DatFile? datFile, Hash hash)
: base(datFile)
2019-01-11 13:43:15 -08:00
{
_hash = hash;
}
}
}