lihzahrd.fileutils
- class lihzahrd.fileutils.FilePacker(data: bytearray)
Helper class for serializing and deserializing a Terraria world file.
- _boolean = Struct('?')
- _fdouble = Struct('d')
- _fsingle = Struct('f')
- _int2 = Struct('h')
- _int4 = Struct('i')
- _int8 = Struct('q')
- _rect = Struct('iiii')
- _uint1 = Struct('B')
- _uint2 = Struct('H')
- _uint4 = Struct('i')
- _uint8 = Struct('Q')
- cursor
The byte currently being edited.
- class lihzahrd.fileutils.Packable
An object which can be serialized and deserialized via a
lihzahrd.fileutils.FilePacker.- classmethod read(f: FilePacker, v: Version) Self
- write(f: FilePacker, v: Version)
- class lihzahrd.fileutils.Pointers(world_header: int, world_tiles: int, chests: int, signs: int, npcs: int, tile_entities: int, pressure_plates: int, town_manager: int, bestiary: int, journey_powers: int, footer: int, *unknown)
Pointers to the various sections of the Terraria save file.
All values are in number of bytes from the start.