2023-03-07 16:59:14 -05:00
|
|
|
namespace BinaryObjectScanner.Models.GCF
|
2022-12-24 12:57:10 -08:00
|
|
|
{
|
|
|
|
|
/// <see href="https://github.com/RavuAlHemio/hllib/blob/master/HLLib/GCFFile.h"/>
|
|
|
|
|
public sealed class DirectoryEntry
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Offset to the directory item name from the end of the directory items.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint NameOffset;
|
|
|
|
|
|
2022-12-25 21:27:06 -08:00
|
|
|
/// <summary>
|
|
|
|
|
/// Directory item name from the end of the directory items.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Name;
|
|
|
|
|
|
2022-12-24 12:57:10 -08:00
|
|
|
/// <summary>
|
|
|
|
|
/// Size of the item. (If file, file size. If folder, num items.)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint ItemSize;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Checksome index. (0xFFFFFFFF == None).
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint ChecksumIndex;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Flags for the directory item. (0x00000000 == Folder).
|
|
|
|
|
/// </summary>
|
2022-12-28 10:14:00 -08:00
|
|
|
public HL_GCF_FLAG DirectoryFlags;
|
2022-12-24 12:57:10 -08:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Index of the parent directory item. (0xFFFFFFFF == None).
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint ParentIndex;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Index of the next directory item. (0x00000000 == None).
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint NextIndex;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Index of the first directory item. (0x00000000 == None).
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint FirstIndex;
|
|
|
|
|
}
|
|
|
|
|
}
|