Files
BinaryObjectScanner/BinaryObjectScanner.Models/MoPaQ/UserData.cs

38 lines
1.1 KiB
C#
Raw Normal View History

2022-12-14 15:43:13 -08:00
using System.Runtime.InteropServices;
2023-03-07 16:59:14 -05:00
namespace BinaryObjectScanner.Models.MoPaQ
2022-12-14 15:43:13 -08:00
{
/// <summary>
/// MPQ User Data are optional, and is commonly used in custom maps for
/// Starcraft II. If MPQ User Data header is present, it contains an offset,
/// from where the MPQ header should be searched.
/// </summary>
/// <see href="http://zezula.net/en/mpq/mpqformat.html"/>
[StructLayout(LayoutKind.Sequential)]
2022-12-27 17:12:55 -08:00
public sealed class UserData
2022-12-14 15:43:13 -08:00
{
/// <summary>
/// The user data signature
/// </summary>
/// <see cref="SignatureValue"/>
2022-12-28 14:39:22 -08:00
public string Signature;
2022-12-14 15:43:13 -08:00
/// <summary>
/// Maximum size of the user data
/// </summary>
public uint UserDataSize;
/// <summary>
/// Offset of the MPQ header, relative to the beginning of this header
/// </summary>
public uint HeaderOffset;
/// <summary>
/// Appears to be size of user data header (Starcraft II maps)
/// </summary>
public uint UserDataHeaderSize;
// TODO: Does this area contain extra data that should be read in?
}
}