Create a mix file with a list of files

This commit is contained in:
Paul Chote
2010-07-17 18:06:27 +12:00
parent a6ba5ec453
commit 04758bacde
2 changed files with 66 additions and 0 deletions

View File

@@ -30,12 +30,27 @@ namespace OpenRA.FileFormats
public readonly uint Offset;
public readonly uint Length;
public PackageEntry(uint hash, uint offset, uint length)
{
Hash = hash;
Offset = offset;
Length = length;
}
public PackageEntry(BinaryReader r)
{
Hash = r.ReadUInt32();
Offset = r.ReadUInt32();
Length = r.ReadUInt32();
}
public void Write(BinaryWriter w)
{
w.Write(Hash);
w.Write(Offset);
w.Write(Length);
}
public override string ToString()
{