GRFFile

Holds information about a single GRFFile

Members

Variables

compressed_size
uint compressed_size;

Compressed filesize using either zlib or lzma

compressed_size_padded
uint compressed_size_padded;

Same as above with extra padding for the DES algorithm

data
ubyte[] data;

Data content

flags
FileFlags flags;

See zgrf.constants : FileFlags

grf
GRF* grf;

GRF where this file is saved in

hash
uint hash;

Hash of the filename

name
wstring name;

Filename

offset
uint offset;

Offset of the file after the file header

offset_ft
ulong offset_ft;

Offset in filetable

rawName
ubyte[] rawName;

Raw filename

size
uint size;

Uncompressed size

Meta