class documentation

A class to write ERF files.

Example

>>> with open("Prelude.mod", "wb") as file:
...    with Writer(file, file_type="MOD ") as e:
...        e.add_localized_string(Language.ENGLISH, "Prelude")
...        with open("item.uti", "rb") as item:
...            e.add_file("item.uti", item)
Class Entry Undocumented
Method __enter__ Undocumented
Method __exit__ Undocumented
Method __init__ Undocumented
Method add_file Undocumented
Method add_localized_string Undocumented
Instance Variable _build_day Undocumented
Instance Variable _build_year Undocumented
Instance Variable _entries Undocumented
Instance Variable _file Undocumented
Instance Variable _file_type Undocumented
Instance Variable _locstr Undocumented
def __enter__(self): (source)

Undocumented

def __exit__(self, exc_type, exc_val, exc_tb): (source)

Undocumented

def __init__(self, file: BinaryIO, file_type: FileMagic = FileMagic(b'ERF '), build_date=date.today()): (source)

Undocumented

def add_file(self, filename: str, data: bytes | BinaryIO): (source)

Undocumented

def add_localized_string(self, gendered_lang: GenderedLanguage, text): (source)

Undocumented

_build_day = (source)

Undocumented

_build_year = (source)

Undocumented

_entries: list = (source)

Undocumented

Undocumented

_file_type = (source)

Undocumented

_locstr: dict = (source)

Undocumented