Erf

ERF file parsing (.erf, .hak, .mod files)

Constructors

this
this()
this
this(ubyte[] data, bool recover)

Parse raw binary data

Members

Functions

serialize
ubyte[] serialize()

Serializes the erf data. Warning: can allocate a huge chunk of RAM

serializeHead
ubyte[] serializeHead()

Serialize erf data except file content

writeToFile
void writeToFile(File file)

Efficient writing to file, with less RAM consumption

Properties

buildDate
Date buildDate [@property getter]
Date buildDate [@property setter]

Date when the erf file has been created

fileType
string fileType [@property getter]
string fileType [@property setter]

File type (ERF, HAK, MOD, ...) Max width: 4 chars

fileVersion
string fileVersion [@property getter]
string fileVersion [@property setter]

File version ("V1.0" for NWN1, "V1.1" for NWN2) Max width: 4 chars

Variables

description
string[Language] description;

Localized module description

files
ErfFile!NV[] files;

Files contained in the erf file

Meta