Class Erf
ERF file parsing (.erf, .hak, .mod files)
Constructors
Name | Description |
---|---|
this
()
|
|
this
(data, recover)
|
Parse raw binary data |
Fields
Name | Type | Description |
---|---|---|
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
Name | Description |
---|---|
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
Name | Description |
---|---|
ErfHeader
|
|
ErfKey
|
|
ErfResource
|