Class Erf

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

class Erf(NwnVersion NV) ;

Constructors

NameDescription
this ()
this (data, recover) Parse raw binary data

Fields

NameTypeDescription
description string[Language]Localized module description
files ErfFile!NV[]Files contained in the erf file
m_buildDate Date
m_fileType string
m_fileVersion string

Methods

NameDescription
buildDate () Date when the erf file has been created
fileType () File type (ERF, HAK, MOD, ...) Max width: 4 chars
fileVersion () File version ("V1.0" for NWN1, "V1.1" for NWN2) Max width: 4 chars
serialize () Serializes the erf data.
serializeHead () Serialize erf data except file content
writeToFile (file) Efficient writing to file, with less RAM consumption

Inner structs

NameDescription
ErfHeader
ErfKey
ErfResource