mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-03-15 14:51:21 +00:00
22 lines
1.1 KiB
C#
Executable file
22 lines
1.1 KiB
C#
Executable file
namespace FSO.Files.FAR1
|
|
{
|
|
/// <summary>
|
|
/// Represents an entry in a FAR1 archive.
|
|
/// </summary>
|
|
public class FarEntry
|
|
{
|
|
//Decompressed data size - A 4-byte unsigned integer specifying the uncompressed size of the file.
|
|
public int DataLength;
|
|
//A 4-byte unsigned integer specifying the compressed size of the file; if this and the previous field are the same,
|
|
//the file is considered uncompressed. (It is the responsibility of the archiver to only store data compressed when
|
|
//its size is less than the size of the original data.) Note that The Sims 1 does not actually support any form
|
|
//of compression.
|
|
public int DataLength2;
|
|
//A 4-byte unsigned integer specifying the offset of the file from the beginning of the archive.
|
|
public int DataOffset;
|
|
//A 4-byte unsigned integer specifying the length of the filename field that follows.
|
|
public short FilenameLength;
|
|
//Filename - The name of the archived file; size depends on the previous field.
|
|
public string Filename;
|
|
}
|
|
}
|