mysimulation/server/tso.files/FAR1/FarEntry.cs
Tony Bark 8fec258215 Added FSO.Files for use with the API server
Don't ask me. FreeSO is the prime example of dependency hell.
2024-05-01 04:38:12 -04:00

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;
}
}