mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-10 13:52:16 +00:00
47 lines
1.4 KiB
C#
47 lines
1.4 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace BinaryObjectScanner.Models.SGA
|
|
{
|
|
/// <summary>
|
|
/// Specialization File7 and up where the CRC moved to the header and the CRC is of the compressed data and there are stronger hashes.
|
|
/// </summary>
|
|
/// <see href="https://github.com/RavuAlHemio/hllib/blob/master/HLLib/SGAFile.h"/>
|
|
public class SpecializedDirectory<THeader, TDirectoryHeader, TSection, TFolder, TFile, U> : Directory
|
|
where THeader : Header
|
|
where TDirectoryHeader : DirectoryHeader<U>
|
|
where TSection : Section<U>
|
|
where TFolder : Folder<U>
|
|
where TFile : File4
|
|
{
|
|
/// <summary>
|
|
/// Source SGA file
|
|
/// </summary>
|
|
public File File { get; set; }
|
|
|
|
/// <summary>
|
|
/// Directory header data
|
|
/// </summary>
|
|
public TDirectoryHeader DirectoryHeader { get; set; }
|
|
|
|
/// <summary>
|
|
/// Sections data
|
|
/// </summary>
|
|
public TSection[] Sections { get; set; }
|
|
|
|
/// <summary>
|
|
/// Folders data
|
|
/// </summary>
|
|
public TFolder[] Folders { get; set; }
|
|
|
|
/// <summary>
|
|
/// Files data
|
|
/// </summary>
|
|
public TFile[] Files { get; set; }
|
|
|
|
/// <summary>
|
|
/// String table data
|
|
/// </summary>
|
|
public Dictionary<long, string> StringTable { get; set; }
|
|
}
|
|
}
|