lihzahrd.fileutils¶
-
class
lihzahrd.fileutils.
FileReader
(file: IO)¶ Helper class for deserializing a Terraria world file.
-
_bool
()¶ Return a tuple containing unpacked values.
Unpack according to the format string Struct.format. The buffer’s size in bytes must be Struct.size.
See help(struct) for more on format strings.
-
_double
()¶ Return a tuple containing unpacked values.
Unpack according to the format string Struct.format. The buffer’s size in bytes must be Struct.size.
See help(struct) for more on format strings.
-
_int1
()¶ Return a tuple containing unpacked values.
Unpack according to the format string Struct.format. The buffer’s size in bytes must be Struct.size.
See help(struct) for more on format strings.
-
_int2
()¶ Return a tuple containing unpacked values.
Unpack according to the format string Struct.format. The buffer’s size in bytes must be Struct.size.
See help(struct) for more on format strings.
-
_int4
()¶ Return a tuple containing unpacked values.
Unpack according to the format string Struct.format. The buffer’s size in bytes must be Struct.size.
See help(struct) for more on format strings.
-
_int8
()¶ Return a tuple containing unpacked values.
Unpack according to the format string Struct.format. The buffer’s size in bytes must be Struct.size.
See help(struct) for more on format strings.
-
_rect
()¶ Return a tuple containing unpacked values.
Unpack according to the format string Struct.format. The buffer’s size in bytes must be Struct.size.
See help(struct) for more on format strings.
-
_single
()¶ Return a tuple containing unpacked values.
Unpack according to the format string Struct.format. The buffer’s size in bytes must be Struct.size.
See help(struct) for more on format strings.
-
_uint2
()¶ Return a tuple containing unpacked values.
Unpack according to the format string Struct.format. The buffer’s size in bytes must be Struct.size.
See help(struct) for more on format strings.
-
_uint4
()¶ Return a tuple containing unpacked values.
Unpack according to the format string Struct.format. The buffer’s size in bytes must be Struct.size.
See help(struct) for more on format strings.
-
_uint8
()¶ Return a tuple containing unpacked values.
Unpack according to the format string Struct.format. The buffer’s size in bytes must be Struct.size.
See help(struct) for more on format strings.
-
bits
()¶
-
bool
() → bool¶
-
datetime
() → datetime.datetime¶
-
double
() → float¶
-
file
¶
-
int1
() → int¶
-
int2
() → int¶
-
int4
() → int¶
-
int8
() → int¶
-
read_until
(address: int) → bytearray¶
-
rect
() → lihzahrd.fileutils.rect.Rect¶
-
single
() → float¶
-
skip_until
(address: int) → None¶
-
string
(size=None) → str¶
-
uint1
() → int¶
-
uint2
() → int¶
-
uint4
() → int¶
-
uint8
() → int¶
-
uleb128
() → int¶
-
uuid
() → uuid.UUID¶
-
-
class
lihzahrd.fileutils.
Rect
(left, right, top, bottom)¶ Class delimining the bounds of a rectangle.
-
bottom
¶
-
left
¶
-
right
¶
-
top
¶
-
-
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.
-
bestiary
¶
-
chests
¶
-
file_format
¶
-
journey_powers
¶
-
npcs
¶
-
pressure_plates
¶
-
signs
¶
-
tile_entities
¶
-
town_manager
¶
-
unknown
¶
-
world_header
¶
-
world_tiles
¶
-