esp_parser.utils
General utilities.
Data:
Helper for 0.94 (as a float) for TES4 headers' version attributes. |
Functions:
|
Helper to create a |
|
Produce a |
-
TES4_0_94= 0.9399999976158142 Type:
floatHelper for 0.94 (as a float) for TES4 headers’ version attributes.
-
create_tes4(version, num_records, next_object_id, author='DEFAULT', description=None, masters=('Fallout3.esm',))[source] Helper to create a
TES4record.- Parameters
version (
float) – 0.94 in most files; 1.7 in recent versions ofUpdate.esm.num_records (
int) – Number of records and groups (not including the TES4 record itself).next_object_id (
bytes) – Next available object ID, as a 4-byte sequence.author (
str) – Optional author’s name. Default'DEFAULT'.masters (
Sequence[str]) – List the plugin’s master files, listed in the order they were present in when the plugin was created. Default('Fallout3.esm',).
- Return type
-
namedtuple_qualname_repr(namedtuple)[source] Produce a
repr()of aNamedTupleshowing the__qualname__.- Parameters
namedtuple (
NamedTuple)- Return type