mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-25 07:39:42 +00:00
This change looks dramatic, but it's just separating out the already-split namespaces into separate top-level folders. In theory, every single one could be built into their own Nuget package. `SabreTools.Serialization` still builds the normal Nuget package that is used by all other projects and includes all namespaces.
47 lines
1.0 KiB
C#
47 lines
1.0 KiB
C#
using System;
|
|
|
|
namespace StormLibSharp
|
|
{
|
|
public delegate void MpqArchiveCompactingEventHandler(MpqArchive sender, MpqArchiveCompactingEventArgs e);
|
|
|
|
public class MpqArchiveCompactingEventArgs : EventArgs
|
|
{
|
|
internal MpqArchiveCompactingEventArgs(uint dwWorkType, ulong processed, ulong total)
|
|
{
|
|
unchecked
|
|
{
|
|
WorkType = (MpqCompactingWorkType)dwWorkType;
|
|
BytesProcessed = (long)processed;
|
|
TotalBytes = (long)total;
|
|
}
|
|
}
|
|
|
|
public MpqCompactingWorkType WorkType
|
|
{
|
|
get;
|
|
private set;
|
|
}
|
|
|
|
public long BytesProcessed
|
|
{
|
|
get;
|
|
private set;
|
|
}
|
|
|
|
public long TotalBytes
|
|
{
|
|
get;
|
|
private set;
|
|
}
|
|
}
|
|
|
|
public enum MpqCompactingWorkType
|
|
{
|
|
CheckingFiles = 1,
|
|
CheckingHashTable = 2,
|
|
CopyingNonMpqData = 3,
|
|
CompactingFiles = 4,
|
|
ClosingArchive = 5,
|
|
}
|
|
}
|